Skip to content

Commit 0c549e1

Browse files
committed
Updated copyright year and target frameworks
1 parent e316086 commit 0c549e1

4 files changed

Lines changed: 25 additions & 8 deletions

File tree

CSRakowski.AsyncStreamsPreparations.Tests/BasicApiTests.cs

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,22 @@ public async Task SimpleForeachLogic()
3434

3535
Assert.That(expectedSum == summedTotal, "Summed total should be {0}, but was found to be {1}", expectedSum, summedTotal);
3636
}
37+
38+
[Test]
39+
public async Task AsyncForeachLogic()
40+
{
41+
const long expectedSum = 5050;
42+
43+
IAsyncEnumerable<int> enumerable = Enumerable.Range(1, 100).AsAsyncEnumerable();
44+
45+
long summedTotal = 0;
46+
47+
await foreach (var current in enumerable)
48+
{
49+
summedTotal += current;
50+
}
51+
52+
Assert.That(expectedSum == summedTotal, "Summed total should be {0}, but was found to be {1}", expectedSum, summedTotal);
53+
}
3754
}
3855
}

CSRakowski.AsyncStreamsPreparations.Tests/CSRakowski.AsyncStreamsPreparations.Tests.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>net472;net45;netcoreapp5.0;netcoreapp3.1;netcoreapp2.1;</TargetFrameworks>
4+
<TargetFrameworks>net472;net45;net5.0;netcoreapp3.1;</TargetFrameworks>
55

66
<IsPackable>false</IsPackable>
77

88
<Authors>Christiaan Rakowski</Authors>
9-
<Copyright>Christiaan Rakowski - 2018-2020</Copyright>
9+
<Copyright>Christiaan Rakowski - 2018-2021</Copyright>
1010
<LangVersion>latest</LangVersion>
11-
<Version>1.2.0</Version>
11+
<Version>1.2.1</Version>
1212
<RootNamespace>CSRakowski.AsyncStreamsPreparations.Tests</RootNamespace>
1313
<AssemblyName>CSRakowski.AsyncStreamsPreparations.Tests</AssemblyName>
1414

CSRakowski.AsyncStreamsPreparations/CSRakowski.AsyncStreamsPreparations.csproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>netcoreapp3.1;netcoreapp3.0;netstandard2.1;netstandard2.0;netstandard1.0</TargetFrameworks>
4+
<TargetFrameworks>net50;netcoreapp3.1;netcoreapp3.0;netstandard2.1;netstandard2.0;netstandard1.0</TargetFrameworks>
55
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
66
<Authors>Christiaan Rakowski</Authors>
77
<Description>Quick helper library containing interfaces and classes to help you prepare for the C# 8 Async Streams feature.</Description>
8-
<Copyright>Christiaan Rakowski - 2018-2020</Copyright>
8+
<Copyright>Christiaan Rakowski - 2018-2021</Copyright>
99
<PackageProjectUrl>https://github.com/csrakowski/CSRakowski.AsyncStreamsPreparations</PackageProjectUrl>
1010
<!--<PackageLicenseUrl>https://github.com/csrakowski/CSRakowski.AsyncStreamsPreparations/blob/master/LICENSE</PackageLicenseUrl>-->
1111
<PackageLicenseFile>LICENSE</PackageLicenseFile>
@@ -16,10 +16,10 @@
1616
<SignAssembly>true</SignAssembly>
1717
<AssemblyOriginatorKeyFile>CSRakowski.AsyncStreamsPreparations.snk</AssemblyOriginatorKeyFile>
1818
<PackageReleaseNotes>* Updated target frameworks.</PackageReleaseNotes>
19-
<Version>1.3.3</Version>
19+
<Version>1.3.4</Version>
2020
</PropertyGroup>
2121

22-
<PropertyGroup Condition="'$(TargetFramework)' == 'netcoreapp3.1' or '$(TargetFramework)' == 'netcoreapp3.0' or '$(TargetFramework)' == 'netstandard2.1'">
22+
<PropertyGroup Condition="'$(TargetFramework)' == 'net50' or '$(TargetFramework)' == 'netcoreapp3.1' or '$(TargetFramework)' == 'netcoreapp3.0' or '$(TargetFramework)' == 'netstandard2.1'">
2323
<DefineConstants>$(DefineConstants);HAS_ASYNCENUMERABLE</DefineConstants>
2424
</PropertyGroup>
2525
<PropertyGroup>

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2018-2020 Christiaan Rakowski
3+
Copyright (c) 2018-2021 Christiaan Rakowski
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

0 commit comments

Comments
 (0)