Skip to content

Commit 00d922e

Browse files
committed
Interlinking
1 parent f469e08 commit 00d922e

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Diff for: _posts/2021-08-02-LetsRefactorATest.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ If we have more than one test without a timezone, we can use a constant `NoTimeZ
190190

191191
For our last refactor, let's remove those `Verify()` calls. We don't need them. [We don't need to assert on stubs]({% post_url 2021-06-07-TipsForBetterStubsAndMocks %}).
192192

193-
If any of the stubs weren't in place, probably we will get a `NullReferenceException` somewhere in our code. Those extra verifications make our test harder to maintain.
193+
If any of the stubs weren't in place, probably we will get a [NullReferenceException]({% post_url 2023-02-20-WhatNullReferenceExceptionIs %}) somewhere in our code. Those extra verifications make our test harder to maintain.
194194

195195
```csharp
196196
[TestMethod]

Diff for: _posts/2021-09-13-TopNewCSharpFeatures.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ Now, it's clearer if we're missing a parameter or if we have them in the wrong o
4343

4444
### Null-conditional (?.) and null-coalescing operators (??)
4545

46-
Starting from C# 6.0, we have two new operators: null-conditional `?.` and null-coalescing `??` operators. These two new operators helps us to get rid of null values and `NullReferenceException`.
46+
Starting from C# 6.0, we have two new operators: null-conditional `?.` and null-coalescing `??` operators. These two new operators helps us to get rid of null values and [NullReferenceException]({% post_url 2023-02-20-WhatNullReferenceExceptionIs %}).
4747

48-
With the null-conditional `?.` operator, we access a member's object if the object isn't null. Otherwise, it returns null.
48+
With the null-conditional `?.` operator, we access a member's object if the object isn't null. Otherwise, it returns `null`.
4949

5050
The null-coalescing `??` operator evaluates an alternative expression if the first one is null.
5151

@@ -70,7 +70,7 @@ string name = ReadNameFromSomewhere();
7070
name?.Trim() ?? "none";
7171
```
7272

73-
It executes `Trim()` only if `name` isn't null. Otherwise, `name?.Trim()` returns `null`. But, with the `??` operator, the whole expression returns "none".
73+
It executes `Trim()` only if `name` isn't `null`. Otherwise, `name?.Trim()` returns `null`. But, with the `??` operator, the whole expression returns "none".
7474

7575
### Expression body definition (=>)
7676

@@ -510,7 +510,7 @@ if (canBeNullName != null)
510510

511511
### Records
512512

513-
A record is an immutable reference type with built-in equality methods. When we create a record, the compiler creates `ToString`, `GetHashCode`, value-based equality methods, a copy constructor and a deconstructor.
513+
A record is an immutable reference type with built-in equality methods. When we create a record, the compiler creates `ToString()`, `GetHashCode()`, value-based equality methods, a copy constructor and a deconstructor.
514514

515515
Records are helpful to replace value-objects in our code.
516516

0 commit comments

Comments
 (0)