Skip to content

Commit 56b67a0

Browse files
committed
v19.1.1 ⬩ Update years in copyright headers
1 parent 2f31a4a commit 56b67a0

File tree

75 files changed

+108
-116
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+108
-116
lines changed

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,5 +234,5 @@ dotnet_style_qualification_for_property = false:silent
234234
dotnet_style_readonly_field = true:warning
235235
dotnet_style_require_accessibility_modifiers = always:silent
236236

237-
file_header_template = ******************************************************************************************************************************\n \nCopyright (c) 2018-2023 InterlockLedger Network\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are met\n\n* Redistributions of source code must retain the above copyright notice, this\n list of conditions and the following disclaimer.\n\n* Redistributions in binary form must reproduce the above copyright notice,\n this list of conditions and the following disclaimer in the documentation\n and/or other materials provided with the distribution.\n\n* Neither the name of the copyright holder nor the names of its\n contributors may be used to endorse or promote products derived from\n this software without specific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"\nAND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\nIMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\nDISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE\nFOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\nDAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\nSERVICES, LOSS OF USE, DATA, OR PROFITS, OR BUSINESS INTERRUPTION) HOWEVER\nCAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\nOR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\nOF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n\n******************************************************************************************************************************
237+
file_header_template = ******************************************************************************************************************************\n \nCopyright (c) 2018-2025 InterlockLedger Network\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are met\n\n* Redistributions of source code must retain the above copyright notice, this\n list of conditions and the following disclaimer.\n\n* Redistributions in binary form must reproduce the above copyright notice,\n this list of conditions and the following disclaimer in the documentation\n and/or other materials provided with the distribution.\n\n* Neither the name of the copyright holder nor the names of its\n contributors may be used to endorse or promote products derived from\n this software without specific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"\nAND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\nIMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\nDISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE\nFOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\nDAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\nSERVICES, LOSS OF USE, DATA, OR PROFITS, OR BUSINESS INTERRUPTION) HOWEVER\nCAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\nOR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\nOF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n\n******************************************************************************************************************************
238238
csharp_style_prefer_top_level_statements = true:silent

Directory.Build.props

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Project>
33
<PropertyGroup>
4-
<Version>19.1.0</Version>
4+
<Version>19.1.1</Version>
55
<PackageReleaseNotes>
6-
- Make more explicit null-safety in some Array[byte] extensions (Possibly breaking ABI)
7-
- Add some new unit tests
8-
- Upgrade nugets for testing dependencies
6+
- Update years in copyright headers
97
</PackageReleaseNotes>
108
</PropertyGroup>
119
</Project>

InterlockLedger.Commons.NUnit.Tests/System.Collections.Generic/Types/SingleEnumerableTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ******************************************************************************************************************************
22
//
3-
// Copyright (c) 2018-2023 InterlockLedger Network
3+
// Copyright (c) 2018-2025 InterlockLedger Network
44
// All rights reserved.
55
//
66
// Redistribution and use in source and binary forms, with or without

InterlockLedger.Commons.NUnit.Tests/System.IO/TextReaderExtensionsTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ******************************************************************************************************************************
22
//
3-
// Copyright (c) 2018-2023 InterlockLedger Network
3+
// Copyright (c) 2018-2025 InterlockLedger Network
44
// All rights reserved.
55
//
66
// Redistribution and use in source and binary forms, with or without

InterlockLedger.Commons.NUnit.Tests/System/AbstractDisposableTests.cs

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ******************************************************************************************************************************
22
//
3-
// Copyright (c) 2018-2023 InterlockLedger Network
3+
// Copyright (c) 2018-2025 InterlockLedger Network
44
// All rights reserved.
55
//
66
// Redistribution and use in source and binary forms, with or without
@@ -33,9 +33,9 @@
3333
namespace System;
3434

3535
[TestFixture]
36-
public class AbstractDisposableTests
36+
public class AbstractDisposableTests : IDisposable
3737
{
38-
private ConcreteDisposable _disposable;
38+
private ConcreteDisposable? _disposable;
3939

4040
[SetUp]
4141
public void SetUp() => _disposable = new ConcreteDisposable();
@@ -74,21 +74,21 @@ public void Do_ReturnsDefaultIfDisposed() {
7474
_disposable.Dispose();
7575
int result = _disposable.ConcreteDo(() => 42, -1);
7676

77-
Assert.That( result, Is.EqualTo(-1));
77+
Assert.That(result, Is.EqualTo(-1));
7878
}
7979

8080
[Test]
8181
public void UnsafeDo_ReturnsDefaultIfDisposed() {
8282
_disposable.Dispose();
8383
string? result = _disposable.ConcreteUnsafeDo(() => "test", "default");
8484
Assert.That(result, Is.Not.Null);
85-
Assert.That( result, Is.EqualTo("default"));
85+
Assert.That(result, Is.EqualTo("default"));
8686
}
8787

8888
[Test]
8989
public async Task DoAsync_ExecutesFunctionIfNotDisposed() {
9090
bool functionExecuted = false;
91-
await _disposable.ConcreteDoAsync( () => {
91+
await _disposable.ConcreteDoAsync(() => {
9292
functionExecuted = true;
9393
return Task.CompletedTask;
9494
}).ConfigureAwait(false);
@@ -100,7 +100,7 @@ await _disposable.ConcreteDoAsync( () => {
100100
public async Task DoAsync_DoesNotExecuteFunctionIfDisposed() {
101101
_disposable.Dispose();
102102
bool functionExecuted = false;
103-
await _disposable.ConcreteDoAsync( () => {
103+
await _disposable.ConcreteDoAsync(() => {
104104
functionExecuted = true;
105105
return Task.CompletedTask;
106106
}).ConfigureAwait(false);
@@ -111,9 +111,9 @@ await _disposable.ConcreteDoAsync( () => {
111111
[Test]
112112
public async Task DoAsync_ReturnsDefaultIfDisposed() {
113113
_disposable.Dispose();
114-
int result = await _disposable.ConcreteDoAsync( () => Task.FromResult(42), -1).ConfigureAwait(false);
114+
int result = await _disposable.ConcreteDoAsync(() => Task.FromResult(42), -1).ConfigureAwait(false);
115115

116-
Assert.That( result, Is.EqualTo(-1));
116+
Assert.That(result, Is.EqualTo(-1));
117117
}
118118

119119
[Test]
@@ -123,4 +123,8 @@ public async Task UnsafeDoAsync_ReturnsDefaultIfDisposed() {
123123
Assert.That(result, Is.Not.Null);
124124
Assert.That(result, Is.EqualTo("default"));
125125
}
126+
127+
public void Dispose() {
128+
throw new NotImplementedException();
129+
}
126130
}

InterlockLedger.Commons.NUnit.Tests/System/ArrayOfByteExtensionsTests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ******************************************************************************************************************************
2-
//
3-
// Copyright (c) 2018-2023 InterlockLedger Network
2+
//
3+
// Copyright (c) 2018-2025 InterlockLedger Network
44
// All rights reserved.
55
//
66
// Redistribution and use in source and binary forms, with or without
@@ -136,4 +136,4 @@ public void SafeLength() {
136136
bytes = [1, 2, 3];
137137
Assert.That(bytes.SafeLength(), Is.EqualTo(3));
138138
}
139-
}
139+
}

InterlockLedger.Commons.NUnit.Tests/System/ConcreteDisposable.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ******************************************************************************************************************************
22
//
3-
// Copyright (c) 2018-2023 InterlockLedger Network
3+
// Copyright (c) 2018-2025 InterlockLedger Network
44
// All rights reserved.
55
//
66
// Redistribution and use in source and binary forms, with or without

InterlockLedger.Commons.NUnit.Tests/System/Helpers.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ******************************************************************************************************************************
22
//
3-
// Copyright (c) 2018-2023 InterlockLedger Network
3+
// Copyright (c) 2018-2025 InterlockLedger Network
44
// All rights reserved.
55
//
66
// Redistribution and use in source and binary forms, with or without

InterlockLedger.Commons.NUnit.Tests/System/IntegerExtensionsTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ******************************************************************************************************************************
2-
//
3-
// Copyright (c) 2018-2023 InterlockLedger Network
2+
//
3+
// Copyright (c) 2018-2025 InterlockLedger Network
44
// All rights reserved.
55
//
66
// Redistribution and use in source and binary forms, with or without

InterlockLedger.Commons.NUnit.Tests/System/LimitedRangeTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ******************************************************************************************************************************
22
//
3-
// Copyright (c) 2018-2023 InterlockLedger Network
3+
// Copyright (c) 2018-2025 InterlockLedger Network
44
// All rights reserved.
55
//
66
// Redistribution and use in source and binary forms, with or without

0 commit comments

Comments
 (0)