Skip to content

Commit

Permalink
Merge pull request #26 from pfpack/release/v2.0.0-rc.1.0.1
Browse files Browse the repository at this point in the history
release/v2.0.0-rc.1.0.1
  • Loading branch information
pmosk authored Nov 14, 2021
2 parents afa28d0 + 514580e commit 6a48b03
Show file tree
Hide file tree
Showing 139 changed files with 401 additions and 2,292 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#nullable enable

using System.Collections.Generic;
using System.Collections.Generic;
using System.Linq;
using static PrimeFuncPack.UnitTest.TestData;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#nullable enable

using NUnit.Framework;
using NUnit.Framework;
using System.Linq;

namespace PrimeFuncPack.Primitives.Tests;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#nullable enable

namespace PrimeFuncPack.Primitives.Tests;
namespace PrimeFuncPack.Primitives.Tests;

public sealed partial class YieldExtensionsTest
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#nullable enable

using NUnit.Framework;
using NUnit.Framework;
using PrimeFuncPack.UnitTest;
using System.Linq;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#nullable enable

using NUnit.Framework;
using NUnit.Framework;
using System.Linq;

namespace PrimeFuncPack.Primitives.Tests;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#nullable enable

namespace PrimeFuncPack.Primitives.Tests;
namespace PrimeFuncPack.Primitives.Tests;

public sealed partial class YielderTest
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#nullable enable

using NUnit.Framework;
using NUnit.Framework;
using PrimeFuncPack.UnitTest;
using System.Linq;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#nullable enable

using NUnit.Framework;
using NUnit.Framework;
using System.Linq;

namespace PrimeFuncPack.Primitives.Tests;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#nullable enable

namespace PrimeFuncPack.Primitives.Tests;
namespace PrimeFuncPack.Primitives.Tests;

public sealed partial class YielderTypedTest
{
Expand Down
2 changes: 1 addition & 1 deletion src/primitives-linq/Primitives.Linq/Primitives.Linq.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<Description>PrimeFuncPack Primitives.Linq is a core library for .NET consisting of useful extensions making work with Linq easier.</Description>
<RootNamespace>System</RootNamespace>
<AssemblyName>PrimeFuncPack.Primitives.Linq</AssemblyName>
<Version>2.0.0-rc.1.0.0</Version>
<Version>2.0.0-rc.1.0.1</Version>
</PropertyGroup>

<ItemGroup>
Expand Down
4 changes: 1 addition & 3 deletions src/primitives-linq/Primitives.Linq/YieldExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#nullable enable

using System.Collections.Generic;
using System.Collections.Generic;
using System.Runtime.CompilerServices;

namespace System.Linq;
Expand Down
4 changes: 1 addition & 3 deletions src/primitives-linq/Primitives.Linq/Yielder.T.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#nullable enable

using System.Collections.Generic;
using System.Collections.Generic;

namespace System.Linq;

Expand Down
4 changes: 1 addition & 3 deletions src/primitives-linq/Primitives.Linq/Yielder.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#nullable enable

using System.Collections.Generic;
using System.Collections.Generic;

namespace System.Linq;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#nullable enable

using NUnit.Framework;
using NUnit.Framework;
using System;

namespace PrimeFuncPack.Primitives.Tests;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#nullable enable

using System;
using System;
using System.Collections.Generic;
using System.Linq;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#nullable enable

using NUnit.Framework;
using NUnit.Framework;
using System;
using static PrimeFuncPack.UnitTest.TestData;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#nullable enable

using System;
using System;
using System.Collections.Generic;
using System.Linq;

Expand Down
4 changes: 1 addition & 3 deletions src/primitives-pipeline/Primitives.Pipeline/Pipeline.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#nullable enable

using System.Runtime.CompilerServices;
using System.Runtime.CompilerServices;

namespace System;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#nullable enable

using System.Runtime.CompilerServices;
using System.Runtime.CompilerServices;

namespace System;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<Description>PrimeFuncPack Primitives.Pipeline is a core library for .NET consisting of useful extensions making work with functional pipelines easier.</Description>
<RootNamespace>System</RootNamespace>
<AssemblyName>PrimeFuncPack.Primitives.Pipeline</AssemblyName>
<Version>2.0.0-rc.1.0.0</Version>
<Version>2.0.0-rc.1.0.1</Version>
</PropertyGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#nullable enable

using NUnit.Framework;
using NUnit.Framework;
using System;
using static PrimeFuncPack.UnitTest.TestData;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#nullable enable

using NUnit.Framework;
using NUnit.Framework;
using System;
using static PrimeFuncPack.UnitTest.TestData;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#nullable enable

using NUnit.Framework;
using NUnit.Framework;
using System;
using static PrimeFuncPack.UnitTest.TestData;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#nullable enable

using NUnit.Framework;
using NUnit.Framework;
using System;

namespace PrimeFuncPack.Primitives.Tests;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#nullable enable

using NUnit.Framework;
using NUnit.Framework;
using System;

namespace PrimeFuncPack.Primitives.Tests;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#nullable enable

using NUnit.Framework;
using NUnit.Framework;
using PrimeFuncPack.UnitTest;
using System;
using static PrimeFuncPack.UnitTest.TestData;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#nullable enable

using NUnit.Framework;
using NUnit.Framework;
using PrimeFuncPack.UnitTest;
using System;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#nullable enable

using NUnit.Framework;
using NUnit.Framework;
using System;
using static PrimeFuncPack.UnitTest.TestData;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#nullable enable

using NUnit.Framework;
using NUnit.Framework;
using System;
using static PrimeFuncPack.UnitTest.TestData;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#nullable enable

using NUnit.Framework;
using NUnit.Framework;
using System;
using static PrimeFuncPack.UnitTest.TestData;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#nullable enable

using NUnit.Framework;
using NUnit.Framework;
using System;

namespace PrimeFuncPack.Primitives.Tests;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#nullable enable

using NUnit.Framework;
using NUnit.Framework;
using System;

namespace PrimeFuncPack.Primitives.Tests;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#nullable enable

using NUnit.Framework;
using NUnit.Framework;
using System;
using static PrimeFuncPack.UnitTest.TestData;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#nullable enable

using NUnit.Framework;
using NUnit.Framework;
using PrimeFuncPack.UnitTest;
using System;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#nullable enable

namespace PrimeFuncPack.Primitives.Tests;
namespace PrimeFuncPack.Primitives.Tests;

public sealed partial class PredicateExtensionsTests
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,40 +1,37 @@
#nullable enable

using NUnit.Framework;
using NUnit.Framework;
using System;
using static PrimeFuncPack.UnitTest.TestData;

namespace PrimeFuncPack.Primitives.Tests
namespace PrimeFuncPack.Primitives.Tests;

partial class PredicatesTests
{
partial class PredicatesTests
[Test]
public void IsNotNullOrEmpty_SourceIsNull_ExpectFalse()
{
[Test]
public void IsNotNullOrEmpty_SourceIsNull_ExpectFalse()
{
string? source = null;
string? source = null;

var actual = Predicates.IsNotNullOrEmpty(source);
Assert.False(actual);
}
var actual = Predicates.IsNotNullOrEmpty(source);
Assert.False(actual);
}

[Test]
public void IsNotNullOrEmpty_SourceIsEmpty_ExpectFalse()
{
string source = string.Empty;
[Test]
public void IsNotNullOrEmpty_SourceIsEmpty_ExpectFalse()
{
string source = string.Empty;

var actual = Predicates.IsNotNullOrEmpty(source);
Assert.False(actual);
}
var actual = Predicates.IsNotNullOrEmpty(source);
Assert.False(actual);
}

[Test]
[TestCase(WhiteSpaceString)]
[TestCase(TabString)]
[TestCase(SomeString)]
public void IsNotNullOrEmpty_SourceIsNotEmpty_ExpectTrue(
string source)
{
var actual = Predicates.IsNotNullOrEmpty(source);
Assert.True(actual);
}
[Test]
[TestCase(WhiteSpaceString)]
[TestCase(TabString)]
[TestCase(SomeString)]
public void IsNotNullOrEmpty_SourceIsNotEmpty_ExpectTrue(
string source)
{
var actual = Predicates.IsNotNullOrEmpty(source);
Assert.True(actual);
}
}
Loading

0 comments on commit 6a48b03

Please sign in to comment.