NExpect 1.0.178

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package NExpect --version 1.0.178
                    
NuGet\Install-Package NExpect -Version 1.0.178
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="NExpect" Version="1.0.178" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="NExpect" Version="1.0.178" />
                    
Directory.Packages.props
<PackageReference Include="NExpect" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add NExpect --version 1.0.178
                    
#r "nuget: NExpect, 1.0.178"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#addin nuget:?package=NExpect&version=1.0.178
                    
Install NExpect as a Cake Addin
#tool nuget:?package=NExpect&version=1.0.178
                    
Install NExpect as a Cake Tool

Unit-test-framework-agnostic Expect-style assertions for .NET







     NExpect Provides Expect() syntax for doing assertions in .NET. Framework-agnostic, throwing



     UnmetExpectationExceptions for failures. Assertion exception type can be overridden at run-time.



     NExpect has grammar inspired by Chai and extensibility inspired by Jasmine.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net452 is compatible.  net46 was computed.  net461 was computed.  net462 is compatible.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETFramework 4.5.2

    • No dependencies.
  • .NETFramework 4.6.2

    • No dependencies.
  • .NETStandard 2.0

    • No dependencies.

NuGet packages (6)

Showing the top 5 NuGet packages that depend on NExpect:

Package Downloads
NExpect.Matchers.NSubstitute

This library offers NSubistitute-specific extensions so you can have Expect-style syntax for your NSubstitute assertions. For example, one may previously have done: ``` Expect(result).To.Equal(expected); someService.Received(1).SomeMethodCall(); ``` and now you can keep it consistent: ``` Expect(result).To.Equal(expected); Expect(someService).To.Have.Received(1).SomeMethodCall(); ```

NExpect.Matchers.AspNetCore

This library adds ASP.Net core extensions for NExpect so you can test your [Route] and [Http*] annotations like so: ``` Expect(typeof(SomeController) .To.Have.Method(nameof(SomeController.MethodName)) .Supporting(HttpMethod.Delete) .And(HttpMethod.Post) .With.Route("first-route") .And.Route("second-route"); ```

NExpect.Matchers.Xml

This library offers XML-specific assertions so you can, for instance: ``` var doc = XDocument.Parse(someXml); Expect(doc) .To.Have.Element("//path/to/element") .With.Attribute("some-attribute") .Having.Value("expected-attribute-value"); ```

NExpect.Matchers.AspNetMvc

This library adds ASP.Net core extensions for NExpect so you can test your [Route] and [Http*] annotations like so: ``` Expect(typeof(SomeController) .To.Have.Method(nameof(SomeController.MethodName)) .Supporting(HttpMethod.Delete) .And(HttpMethod.Post) .With.Route("first-route") .And.Route("second-route"); ```

NExpect.NSubstitute

NSubstitute extensions for NExpect so you can: ``` Expect(foo).(Not).To.Have.Received().Method(..); ```

GitHub repositories (3)

Showing the top 3 popular GitHub repositories that depend on NExpect:

Repository Stars
clojure/clojure-clr
A port of Clojure to the CLR, part of the Clojure project
Rohland/htmldiff.net
Html Diff algorithm for .NET
fluffynuts/PeanutButter
Tasty, versatile, nutritious; goes with many things in .net.
Version Downloads Last updated
2.0.116 1,441 3/24/2025
2.0.115 647 2/25/2025
2.0.114 284 2/13/2025
2.0.113 157 2/12/2025
2.0.112 161 2/12/2025
2.0.111 2,517 12/17/2024
2.0.110 2,059 11/13/2024
2.0.109 224 11/1/2024
2.0.108 331 10/23/2024
2.0.107 194 10/23/2024
2.0.106 208 10/22/2024
2.0.105 1,941 9/11/2024
2.0.104 949 8/30/2024
2.0.103 223 8/30/2024 2.0.103 is deprecated.
2.0.102 2,188 6/19/2024
2.0.101 233 6/11/2024
2.0.100 291 6/10/2024
2.0.99 279 6/5/2024
2.0.98 202 6/3/2024
2.0.97 178 6/3/2024
2.0.96 191 6/3/2024
2.0.95 356 5/17/2024
2.0.94 794 5/17/2024
2.0.93 239 5/17/2024
2.0.92 448 4/29/2024
2.0.91 1,049 4/17/2024
2.0.90 236 4/15/2024
2.0.89 241 4/8/2024
2.0.88 236 4/5/2024
2.0.87 194 4/5/2024
2.0.86 230 4/5/2024
2.0.85 200 4/5/2024
2.0.84 214 4/4/2024
2.0.83 721 4/3/2024
2.0.82 863 4/2/2024
2.0.81 558 3/13/2024
2.0.80 214 3/13/2024 2.0.80 is deprecated.
2.0.79 284 3/11/2024
2.0.78 310 3/5/2024
2.0.77 375 2/27/2024
2.0.76 229 2/26/2024
2.0.75 310 2/22/2024
2.0.74 249 2/22/2024
2.0.73 273 2/19/2024
2.0.72 236 2/15/2024
2.0.71 471 2/13/2024
2.0.70 364 2/13/2024
2.0.69 692 2/7/2024
2.0.68 257 2/6/2024
2.0.67 308 2/5/2024
2.0.66 257 2/2/2024
2.0.65 874 1/30/2024
2.0.64 398 1/18/2024
2.0.63 707 1/15/2024
2.0.62 236 1/12/2024
2.0.61 201 1/12/2024
2.0.60 274 1/10/2024
2.0.59 279 1/9/2024
2.0.58 1,049 12/13/2023
2.0.57 893 11/28/2023
2.0.56 264 11/28/2023
2.0.55 7,454 11/17/2023
2.0.54 312 11/17/2023
2.0.53 249 11/17/2023
2.0.52 985 10/30/2023
2.0.51 338 10/26/2023
2.0.50 807 10/12/2023
2.0.49 2,865 9/28/2023
2.0.48 592 9/22/2023
2.0.47 238 9/21/2023
2.0.46 297 9/20/2023
2.0.45 447 9/14/2023
2.0.44 247 9/14/2023
2.0.43 796 8/25/2023
2.0.42 256 8/25/2023
2.0.42-2308241227.f6c25ee 83 8/24/2023
2.0.42-2308161448.98b76da 82 8/16/2023
2.0.42-2308161446.ec7a107 79 8/16/2023
2.0.42-2308161429.74c00e2 83 8/16/2023
2.0.41 597 8/14/2023
2.0.40 559 8/4/2023
2.0.39 315 8/4/2023
2.0.38 272 8/4/2023
2.0.37 288 8/4/2023
2.0.36 311 8/4/2023
2.0.35 270 8/4/2023
2.0.34 1,027 6/22/2023
2.0.33 310 6/22/2023
2.0.32 316 6/22/2023
2.0.32-2306210815 91 6/21/2023
2.0.32-2306210812 64 6/21/2023
2.0.32-2306151149.332886a 98 6/15/2023
2.0.32-2306151140.93d85dc 94 6/15/2023
2.0.32-2306150947.3b80752 94 6/15/2023
2.0.31 449 6/12/2023
2.0.30 538 6/9/2023
2.0.30-2306091428.6fc0bd3 120 6/9/2023
2.0.30-2306091304.51d4d0b 97 6/9/2023
2.0.30-2306091204.1fe4d76 94 6/9/2023
2.0.30-2306090857.5be3155 98 6/9/2023
2.0.30-2306081701.3a525ef 95 6/8/2023
2.0.30-2306081646.5a15be2 93 6/8/2023
2.0.30-2306081628.68f2d91 96 6/8/2023
2.0.30-2306081611.3c4f19f 98 6/8/2023
2.0.30-2306081557.4fa2105 93 6/8/2023
2.0.30-2306081119.fdddf3b 100 6/8/2023
2.0.30-2306081053.68ba9f2 94 6/8/2023
2.0.30-2306080900.1b126b1 96 6/8/2023
2.0.29 967 5/23/2023
2.0.28 471 5/18/2023
2.0.27 412 5/12/2023
2.0.26 374 5/12/2023
2.0.25 500 4/26/2023
2.0.24 11,248 2/1/2023
2.0.23 715 1/30/2023
2.0.22 923 1/26/2023
2.0.21 730 1/25/2023
2.0.20 840 1/25/2023
2.0.19 2,078 11/30/2022
2.0.18 1,610 11/14/2022
2.0.17 4,859 10/19/2022
2.0.16 1,332 10/17/2022
2.0.15 1,254 10/17/2022
2.0.14 1,892 10/3/2022
2.0.13 1,276 10/3/2022
2.0.12 1,339 10/3/2022
2.0.11 1,381 9/27/2022
2.0.10 1,486 9/20/2022
2.0.9 1,466 9/19/2022
2.0.8 1,466 9/15/2022
2.0.7 1,465 9/14/2022
2.0.6 1,334 9/13/2022
2.0.5 1,350 9/13/2022
2.0.4 1,367 9/13/2022
2.0.3 1,407 9/9/2022
2.0.2 1,307 9/9/2022
2.0.1 1,353 9/9/2022
1.0.276 72,773 8/17/2022
1.0.275 1,379 8/17/2022
1.0.274 2,216 7/28/2022
1.0.273 5,638 7/14/2022
1.0.272 1,477 7/14/2022
1.0.271 1,438 7/13/2022
1.0.270 1,652 7/7/2022
1.0.269 1,405 7/7/2022
1.0.268 2,015 6/20/2022
1.0.267 1,589 6/14/2022
1.0.266 1,701 6/9/2022
1.0.265 3,013 5/27/2022
1.0.264 1,582 5/24/2022
1.0.263 1,427 5/23/2022
1.0.262 1,553 5/17/2022
1.0.261 1,425 5/16/2022
1.0.260 1,434 5/16/2022
1.0.259 1,890 5/6/2022
1.0.258 1,437 5/5/2022
1.0.257 1,421 5/5/2022
1.0.256 1,414 5/4/2022
1.0.255 1,455 5/4/2022
1.0.254 2,227 4/5/2022
1.0.253 1,477 4/5/2022
1.0.252 1,442 4/4/2022
1.0.251 1,635 3/22/2022
1.0.250 3,062 2/3/2022
1.0.249 1,517 1/28/2022
1.0.248 1,822 1/27/2022
1.0.247 1,495 1/26/2022
1.0.246 1,461 1/25/2022
1.0.245 1,453 1/18/2022
1.0.244 1,443 1/18/2022
1.0.243 1,304 1/12/2022
1.0.242 1,149 12/10/2021
1.0.241 887 12/10/2021
1.0.240 888 12/10/2021
1.0.239 1,015 12/6/2021
1.0.238 1,362 12/6/2021
1.0.236 900 12/2/2021
1.0.235 946 12/2/2021
1.0.234 908 12/2/2021
1.0.233 1,140 11/18/2021
1.0.232 912 11/18/2021
1.0.231 1,151 11/9/2021
1.0.230 1,031 11/9/2021
1.0.227 1,157 10/14/2021
1.0.226 1,280 9/2/2021
1.0.225 917 8/31/2021
1.0.224 941 8/30/2021
1.0.223 1,073 8/6/2021
1.0.222 939 8/6/2021
1.0.221 945 8/6/2021
1.0.220 963 8/3/2021
1.0.219 1,024 7/30/2021
1.0.218 1,076 7/7/2021
1.0.217 878 7/7/2021
1.0.216 913 7/7/2021
1.0.215 939 7/6/2021
1.0.214 943 7/6/2021
1.0.213 890 7/6/2021
1.0.212 26,532 5/14/2021
1.0.211 900 5/11/2021
1.0.210 884 5/11/2021
1.0.209 848 5/11/2021
1.0.208 831 5/11/2021
1.0.207 1,183 5/3/2021
1.0.206 989 5/3/2021
1.0.205 919 5/3/2021
1.0.204 873 5/3/2021
1.0.203 903 4/15/2021
1.0.202 902 4/15/2021
1.0.201 850 4/15/2021
1.0.200 863 4/15/2021
1.0.199 864 4/14/2021
1.0.198 1,005 3/19/2021
1.0.197 898 3/9/2021
1.0.196 915 3/9/2021
1.0.195 892 3/9/2021
1.0.194 976 3/9/2021
1.0.193 976 3/9/2021
1.0.192 1,000 3/9/2021
1.0.191 992 2/12/2021
1.0.190 1,045 1/21/2021
1.0.189 1,042 1/21/2021
1.0.188 923 1/21/2021
1.0.187 918 1/21/2021
1.0.186 1,246 1/8/2021
1.0.185 974 1/8/2021
1.0.184 5,178 11/13/2020
1.0.183 930 11/13/2020
1.0.182 962 11/13/2020
1.0.181 1,363 10/13/2020
1.0.180 1,103 10/12/2020
1.0.179 1,173 8/31/2020
1.0.178 3,706 8/4/2020
1.0.177 1,095 7/21/2020
1.0.176 1,008 7/10/2020
1.0.175 1,069 7/10/2020
1.0.174 3,609 5/20/2020
1.0.173 1,085 5/20/2020
1.0.172 1,154 5/20/2020
1.0.171 1,133 5/8/2020
1.0.170 2,072 4/9/2020
1.0.169 1,197 4/3/2020
1.0.168 1,098 3/25/2020
1.0.167 1,211 3/23/2020
1.0.166 1,233 2/6/2020
1.0.165 1,245 12/30/2019
1.0.164 1,115 12/28/2019
1.0.163 1,092 12/28/2019
1.0.162 1,485 12/5/2019
1.0.161 1,074 12/5/2019
1.0.160 1,478 11/20/2019
1.0.159 1,754 10/14/2019
1.0.158 736 10/13/2019
1.0.157 1,217 10/3/2019
1.0.156 1,136 9/17/2019
1.0.155 1,138 9/15/2019
1.0.154 2,827 6/20/2019
1.0.153 1,800 6/20/2019
1.0.152 1,999 6/6/2019
1.0.151 1,820 6/4/2019
1.0.150 1,853 5/25/2019
1.0.149 1,801 5/23/2019
1.0.148 1,790 5/16/2019
1.0.147 1,816 5/16/2019
1.0.146 1,571 5/16/2019
1.0.145 1,522 5/16/2019
1.0.143 2,673 5/14/2019
1.0.142 1,723 5/13/2019
1.0.141 1,451 5/7/2019
1.0.140 1,543 4/16/2019
1.0.139 1,524 4/16/2019
1.0.138 1,436 4/16/2019
1.0.137 1,372 4/16/2019
1.0.136 1,586 1/9/2019
1.0.135 6,052 12/12/2018
1.0.134 1,536 12/12/2018
1.0.132 1,765 8/11/2018
1.0.131 1,734 7/31/2018
1.0.130 1,734 7/25/2018
1.0.129 1,713 7/24/2018
1.0.128 1,733 7/19/2018
1.0.127 1,828 7/4/2018
1.0.126 1,873 6/20/2018
1.0.125 1,874 6/19/2018
1.0.124 1,926 5/24/2018
1.0.123 1,860 5/18/2018
1.0.122 2,019 5/17/2018
1.0.121 2,000 4/29/2018
1.0.120 1,973 4/29/2018
1.0.119 1,930 4/27/2018
1.0.118 1,907 4/26/2018
1.0.117 1,884 4/26/2018
1.0.116 1,870 4/25/2018
1.0.115 1,724 4/23/2018
1.0.114 1,908 4/12/2018
1.0.113 1,960 4/11/2018
1.0.112 1,901 4/4/2018
1.0.111 1,900 4/3/2018
1.0.110 1,906 4/2/2018
1.0.109 1,913 3/29/2018
1.0.108 1,904 3/28/2018
1.0.107 1,917 3/22/2018
1.0.106 1,932 3/22/2018
1.0.105 2,078 2/28/2018
1.0.104 1,994 2/26/2018
1.0.103 1,921 2/25/2018
1.0.102 1,915 2/24/2018
1.0.101 1,741 2/23/2018
1.0.100 2,072 2/23/2018
1.0.99 1,972 1/16/2018
1.0.98 1,975 12/20/2017
1.0.97 1,948 12/10/2017
1.0.96 1,881 12/7/2017
1.0.95 1,916 12/7/2017
1.0.94 1,772 12/6/2017
1.0.93 1,964 12/6/2017
1.0.92 1,833 11/30/2017
1.0.91 1,782 11/30/2017
1.0.90 1,779 11/28/2017
1.0.89 1,731 11/28/2017
1.0.88 2,025 10/18/2017
1.0.87 1,986 10/16/2017
1.0.86 1,974 10/16/2017
1.0.85 2,013 10/15/2017
1.0.84 2,017 10/6/2017
1.0.83 2,027 10/6/2017
1.0.82 2,016 10/5/2017
1.0.81 2,014 10/4/2017
1.0.80 2,048 9/30/2017
1.0.79 2,247 9/28/2017
1.0.78 1,956 9/27/2017
1.0.77 1,988 9/26/2017
1.0.76 1,970 9/26/2017
1.0.75 1,998 9/26/2017
1.0.74 1,958 9/26/2017
1.0.73 1,968 9/26/2017
1.0.72 2,043 9/21/2017
1.0.71 2,033 9/20/2017
1.0.70 1,978 9/20/2017
1.0.69 1,986 9/20/2017
1.0.68 1,988 9/20/2017
1.0.67 1,984 9/18/2017
1.0.66 2,043 9/18/2017
1.0.65 2,006 9/18/2017
1.0.64 2,007 9/18/2017
1.0.63 1,988 9/17/2017
1.0.62 1,970 9/17/2017
1.0.61 2,003 9/17/2017
1.0.60 2,037 9/15/2017
1.0.59 2,027 9/15/2017
1.0.58 2,012 9/12/2017
1.0.57 1,971 9/12/2017
1.0.56 2,008 9/12/2017
1.0.55 2,016 9/12/2017
1.0.54 1,986 9/12/2017
1.0.53 2,006 9/11/2017
1.0.52 1,999 9/11/2017
1.0.51 1,984 9/8/2017
1.0.50 2,002 9/8/2017
1.0.49 2,029 9/6/2017
1.0.48 2,007 9/6/2017
1.0.47 2,008 9/5/2017
1.0.46 2,025 9/5/2017
1.0.45 2,004 9/1/2017
1.0.44 2,006 8/31/2017
1.0.43 2,032 8/31/2017
1.0.42 2,026 8/31/2017
1.0.41 2,014 8/31/2017
1.0.40 2,043 8/31/2017
1.0.39 2,067 8/30/2017
1.0.38 1,800 8/28/2017
1.0.37 1,835 8/22/2017
1.0.36 1,808 8/22/2017
1.0.35 1,791 8/22/2017
1.0.34 1,778 8/21/2017
1.0.33 1,779 8/17/2017
1.0.32 1,829 8/16/2017
1.0.31 1,814 8/16/2017
1.0.30 1,797 8/15/2017
1.0.29 1,790 8/15/2017
1.0.28 1,850 8/15/2017
1.0.27 1,861 8/14/2017
1.0.26 1,779 8/11/2017
1.0.25 1,791 8/11/2017
1.0.24 1,771 8/9/2017
1.0.21 1,787 8/7/2017
1.0.19 1,842 8/7/2017
1.0.17 1,833 8/7/2017
1.0.15 1,820 8/4/2017
1.0.13 1,804 8/4/2017
1.0.11 1,819 8/3/2017
1.0.9 1,832 7/23/2017
1.0.8 1,809 7/23/2017
1.0.7 1,797 7/23/2017
1.0.6 1,804 7/23/2017
1.0.5 1,817 7/22/2017
1.0.4 1,815 7/22/2017
1.0.3 1,809 7/22/2017
1.0.1 1,928 7/21/2017
1.0.0 1,831 7/20/2017