-
E.g. `GetComponent` will return `null` if the component isn't found. Adding `[CanBeNull]` will show warnings to check for `null` before use.
This will require trawling through the docs to see what…
-
Exceptional says that this code can give ArgumentNullException:
```
if (foo != null)
a = foo.FirstOrDefault();
```
https://exceptional.codeplex.com/workitem/8337
-
**Product and Version Used**:
rosylnator, 2019
**Steps to Reproduce**:
string testString = "123 test";
testString.Replace("123", "");
output(testString);
**Actual Behavior**:
no warning th…
-
Are these worthwhile?
-
The use case would be making sure that every entity has all required components. For example, a player controller component (move the player with the keyboard) needs a camera.
```cs
public class P…
-
I'm testing library for c# 8 support but it looks like it is not working
`public static string Test(string? text)
{
text.MustNotBeNull();
return text.Substring(0, 1);
}`
With proper …
-
Xamarin.iOS|Mac bindings already support `[NullAllowed]`. This controls if `null` checks are generated inside (the body of) API bindings.
We often talked about doing more tooling but it did not yet…
-
Please take a look at this code:
```cs
var car = new Car();
Assert.IsNotNull(car);
Assert.IsTrue(car.HasEngine);
```
When using ReSharper, it works perfectly fine without any complaints. Now I…
mu88 updated
11 months ago
-
Guard.Against.Null There is [NoEnumeration] attribute for the input used in the method. Resharper siglalizes possibility of multiple enumeration eventhough the underlying method doesn't enumerat…
-
To start with, great project here. I have been using it alongside with `ReSharperHelpers` and have a really solid testing experience now in R# and Visual Studio.
Of course, having two testing exte…