We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Let's collect improvements we could/should make in our next major versions and are not allowed to apply now because of SemVer. Issue might be updated.
Make RouteAction a read-only struct to optimize performance
RouteAction
Return array instead of IList, so we can optimize contract
IList
NSubstitute/src/NSubstitute/Core/IThreadLocalContext.cs
Line 27 in deea0ea
Refactor ICall and replace Get methods with properties
ICall
Get
NSubstitute/src/NSubstitute/Core/ICall.cs
Lines 8 to 19 in a2462d5
Make NSubstitute.Core.Argument a read-only struct, as it's a thin wrapper on top of ICall and index.
NSubstitute.Core.Argument
Rework IAutoValueProvider interface to:
IAutoValueProvider
bool TryCreateValue(Type type, out object result)
Make the ReflectionExtensions helper internal and remove OrNull suffix as we use nullability for that.
ReflectionExtensions
OrNull
Normalize Extension-like classes, as at the moment we have a plenty of them and it's a bit hard to navigate through them.
Extension
Add class constraint to all the DSL extension methods receiving substitute. Example: ReceivedExtensions.Received()
class
ReceivedExtensions.Received()
Review IPendingSpecification interface and potentially change it to Try pattern.
IPendingSpecification
Try
Convert to a record once we drop .NET Standard 1.3 support:
record
ArgumentMatchInfo
Quantity
Do not expose internal classes from Core namespace, but instead expose interfaces.
Core
Make SubsitutionContext constructor private, so it can be instantiated via container only.
SubsitutionContext
Change return type of ArgumentMatchInfo.DescribeNonMatch to return null if cannot describe instead of an empty string.
ArgumentMatchInfo.DescribeNonMatch
The text was updated successfully, but these errors were encountered:
It's hard to see what has been done already, but I guess this should be v6
Sorry, something went wrong.
No branches or pull requests
Let's collect improvements we could/should make in our next major versions and are not allowed to apply now because of SemVer. Issue might be updated.
Make
RouteAction
a read-only struct to optimize performanceReturn array instead of
IList
, so we can optimize contractNSubstitute/src/NSubstitute/Core/IThreadLocalContext.cs
Line 27 in deea0ea
Refactor
ICall
and replaceGet
methods with propertiesNSubstitute/src/NSubstitute/Core/ICall.cs
Lines 8 to 19 in a2462d5
Make
NSubstitute.Core.Argument
a read-only struct, as it's a thin wrapper on top ofICall
and index.Rework
IAutoValueProvider
interface to:bool TryCreateValue(Type type, out object result)
methodMake the
ReflectionExtensions
helper internal and removeOrNull
suffix as we use nullability for that.Normalize
Extension
-like classes, as at the moment we have a plenty of them and it's a bit hard to navigate through them.Add
class
constraint to all the DSL extension methods receiving substitute. Example:ReceivedExtensions.Received()
Review
IPendingSpecification
interface and potentially change it toTry
pattern.Convert to a
record
once we drop .NET Standard 1.3 support:ArgumentMatchInfo
Quantity
descendantsDo not expose internal classes from
Core
namespace, but instead expose interfaces.Make
SubsitutionContext
constructor private, so it can be instantiated via container only.Change return type of
ArgumentMatchInfo.DescribeNonMatch
to return null if cannot describe instead of an empty string.The text was updated successfully, but these errors were encountered: