Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Re-enable tests for hidden extensions on all targets #1009

Merged
merged 1 commit into from
Jun 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions MoreLinq.Test/AggregateTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ namespace MoreLinq.Test
using System.Reactive.Linq;
using System.Reflection;
using NUnit.Framework.Interfaces;
using static MoreLinq.Extensions.AppendExtension;
using static FuncModule;

[TestFixture]
Expand Down
5 changes: 1 addition & 4 deletions MoreLinq.Test/AppendTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,11 @@
// limitations under the License.
#endregion

#if !NET471_OR_GREATER && !NETSTANDARD1_6_OR_GREATER && !NETCOREAPP2_0_OR_GREATER

namespace MoreLinq.Test
{
using System.Collections.Generic;
using NUnit.Framework;
using static MoreLinq.Extensions.AppendExtension;

[TestFixture]
public class AppendTest
Expand Down Expand Up @@ -92,5 +91,3 @@ public void AppendWithSharedSource()
}
}
}

#endif
5 changes: 1 addition & 4 deletions MoreLinq.Test/DistinctByTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,11 @@
// limitations under the License.
#endregion

#if !NET6_0_OR_GREATER

namespace MoreLinq.Test
{
using System;
using NUnit.Framework;
using static MoreLinq.Extensions.DistinctByExtension;

[TestFixture]
public class DistinctByTest
Expand Down Expand Up @@ -63,5 +62,3 @@ public void DistinctByIsLazyWithComparer()
}
}
}

#endif
5 changes: 0 additions & 5 deletions MoreLinq.Test/Enumerable.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,6 @@ public static bool Any<TSource>(this IEnumerable<TSource> source) =>
public static bool Any<TSource>(this IEnumerable<TSource> source, Func<TSource, bool> predicate) =>
LinqEnumerable.Any(source, predicate);

#if NET471_OR_GREATER || NET6_0_OR_GREATER
public static IEnumerable<TSource> Append<TSource> (this IEnumerable<TSource> source, TSource element) =>
LinqEnumerable.Append(source, element);
#endif

public static IEnumerable<TSource> AsEnumerable<TSource>(this IEnumerable<TSource> source) =>
LinqEnumerable.AsEnumerable(source);

Expand Down
1 change: 1 addition & 0 deletions MoreLinq.Test/GroupAdjacentTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ namespace MoreLinq.Test
using System;
using System.Collections.Generic;
using NUnit.Framework;
using static MoreLinq.Extensions.AppendExtension;

[TestFixture]
public class GroupAdjacentTest
Expand Down
1 change: 1 addition & 0 deletions MoreLinq.Test/PartialSortTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ namespace MoreLinq.Test
{
using System;
using NUnit.Framework;
using static MoreLinq.Extensions.AppendExtension;

[TestFixture]
public class PartialSortTests
Expand Down
5 changes: 1 addition & 4 deletions MoreLinq.Test/PrependTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,12 @@
// limitations under the License.
#endregion

#if !NET471_OR_GREATER && !NETSTANDARD1_6_OR_GREATER && !NETCOREAPP2_0_OR_GREATER

namespace MoreLinq.Test
{
using System.Collections.Generic;
using NUnit.Framework;
using NUnit.Framework.Interfaces;
using static MoreLinq.Extensions.PrependExtension;

[TestFixture]
public class PrependTest
Expand Down Expand Up @@ -91,5 +90,3 @@ public void PrependWithSharedSource()
}
}
}

#endif
5 changes: 1 addition & 4 deletions MoreLinq.Test/SkipLastTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,11 @@
// limitations under the License.
#endregion

#if !NETSTANDARD2_1 && !NETCOREAPP2_0_OR_GREATER

namespace MoreLinq.Test
{
using System.Collections.Generic;
using NUnit.Framework;
using static MoreLinq.Extensions.SkipLastExtension;

[TestFixture]
public class SkipLastTest
Expand Down Expand Up @@ -70,5 +69,3 @@ public void SkipLastUsesCollectionCountAtIterationTime()
}
}
}

#endif
5 changes: 1 addition & 4 deletions MoreLinq.Test/TakeLastTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,12 @@
// limitations under the License.
#endregion

#if !NETSTANDARD2_1 && !NETCOREAPP2_0_OR_GREATER

namespace MoreLinq.Test
{
using NUnit.Framework;
using System.Collections.Generic;
using System;
using static MoreLinq.Extensions.TakeLastExtension;

[TestFixture]
public class TakeLastTest
Expand Down Expand Up @@ -91,5 +90,3 @@ static void AssertTakeLast<T>(ICollection<T> input, int count, Action<IEnumerabl
}
}
}

#endif