Comments (1)
The above is an abuse of the intended expressions capabilities of UnitTestEx
. The expressions enable additional logging and features behind the scenes as the function is not immediately executed. For example, in the above, the expression will be automatically converted into an HttpRequest
versus calling the expression function directly - it is intended to make using and invoking the test easier (more logical).
UnitTestEx
has been updated to throw an InvalidOperationException
where the likes of method-chaining are used to invoke. Otherwise, the underlying intended behavior remains unchanged.
@karpikpl, are there other scenarios you have encountered that need to be accounted for here?
from unittestex.
Related Issues (20)
- Asserts should be explicit and not attempt to do too much, split into multiple where appropriate
- Add `ObjectComparer.Assert` which compares two objects and will fail, and report, where there is no match.
- Add option to update other properties of the ServiceBus message HOT 1
- Execute a function with a `ServiceBusTrigger` simulating Azure Function runtime. HOT 1
- `ActionResultAssertor.Assert` with object value does not correctly compare when result is `ContentResult`
- Provide a means to cast a `ResultAssertor` to an `ActionResultAssertor` where the result `Type` is `IActionResult` HOT 1
- `TypeTester.Run` and `RunAsync` methods should support `Func` versus `Expression<Func>` to simplify runtime usage
- The `IServiceCollection.Replace` extension methods need to support `ReplaceXxx<T>()` and `ReplaceXxx<T, T>()` to match the `Add` methods HOT 1
- Result not being output in log correctly HOT 1
- UnitTests fail when there's a comment in local.settings.json HOT 1
- Add support for Times struct to verify the number of times a request is made. HOT 1
- Feature request: ability to set test configuration via appsettings.unittest.json
- Add support for sequences; i.e. multiple different responses HOT 1
- MockServiceBus mock object does not work as intended HOT 1
- Issue with Asserts? HOT 2
- Using Flurl with UnitTestEx HOT 2
- Security Policy violation Outside Collaborators HOT 46
- Add delay (sleep) option so response is not always immediate
- Enable access to Services (IServiceColllection) from testers to enable one-off instantiations
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from unittestex.