Skip to content

Commit

Permalink
Merge e98d632 into d739f65
Browse files Browse the repository at this point in the history
  • Loading branch information
atifaziz authored Jun 26, 2023
2 parents d739f65 + e98d632 commit c5fca69
Show file tree
Hide file tree
Showing 9 changed files with 8 additions and 25 deletions.
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

0 comments on commit c5fca69

Please sign in to comment.