Skip to content

Commit

Permalink
Disable tests for less than .NET 7.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Rog-Wilhelm committed Oct 6, 2023
1 parent f97914a commit 70d70f2
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
2 changes: 2 additions & 0 deletions extra/recorder_enumerator/test/Container.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#if NET7_0_OR_GREATER
namespace RecorderEnumeratorTest
{
using DecTest;
Expand Down Expand Up @@ -32,3 +33,4 @@ public void List([ValuesExcept(RecorderMode.Validation)] RecorderMode recorderMo
}
}
}
#endif
2 changes: 2 additions & 0 deletions extra/recorder_enumerator/test/DelegateTest.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#if NET7_0_OR_GREATER
namespace RecorderEnumeratorTest
{
using DecTest;
Expand Down Expand Up @@ -86,3 +87,4 @@ public void ActionWithClosureSideEffects([ValuesExcept(RecorderMode.Validation)]
}
}
}
#endif
2 changes: 2 additions & 0 deletions extra/recorder_enumerator/test/Function.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#if NET7_0_OR_GREATER
namespace RecorderEnumeratorTest
{
using DecTest;
Expand Down Expand Up @@ -70,3 +71,4 @@ public void LocalGenericFunction([ValuesExcept(RecorderMode.Validation)] Recorde
}
}
}
#endif
8 changes: 2 additions & 6 deletions extra/recorder_enumerator/test/Linq.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#if NET6_0_OR_GREATER
namespace RecorderEnumeratorTest
{
using DecTest;
Expand Down Expand Up @@ -353,7 +354,6 @@ public void DistinctEnumeratorTest([ValuesExcept(RecorderMode.Validation)] Recor
Assert.IsTrue(Util.AreEquivalentEnumerators(source, result));
}

#if NET6_0_OR_GREATER
[Test]
[Dec.RecorderEnumerator.RecordableClosures]
public void DistinctByEnumeratorTest([ValuesExcept(RecorderMode.Validation)] RecorderMode recorderMode)
Expand All @@ -365,7 +365,6 @@ public void DistinctByEnumeratorTest([ValuesExcept(RecorderMode.Validation)] Rec
var result = DoRecorderRoundTrip(source, recorderMode);
Assert.IsTrue(Util.AreEquivalentEnumerators(source, result));
}
#endif

[Test]
[Dec.RecorderEnumerator.RecordableClosures]
Expand Down Expand Up @@ -410,7 +409,6 @@ public void IntersectEnumeratorTest([ValuesExcept(RecorderMode.Validation)] Reco
Assert.IsTrue(Util.AreEquivalentEnumerators(intersectEnumerator, result));
}

#if NET6_0_OR_GREATER
[Test]
[Dec.RecorderEnumerator.RecordableClosures]
public void IntersectByEnumeratorTest([ValuesExcept(RecorderMode.Validation)] RecorderMode recorderMode)
Expand All @@ -424,7 +422,6 @@ public void IntersectByEnumeratorTest([ValuesExcept(RecorderMode.Validation)] Re
var result = DoRecorderRoundTrip(intersectEnumerator, recorderMode);
Assert.IsTrue(Util.AreEquivalentEnumerators(intersectEnumerator, result));
}
#endif

[Test]
[Dec.RecorderEnumerator.RecordableClosures]
Expand All @@ -440,7 +437,6 @@ public void ExceptEnumeratorTest([ValuesExcept(RecorderMode.Validation)] Recorde
Assert.IsTrue(Util.AreEquivalentEnumerators(exceptEnumerator, result));
}

#if NET6_0_OR_GREATER
[Test]
[Dec.RecorderEnumerator.RecordableClosures]
public void ExceptByEnumeratorTest([ValuesExcept(RecorderMode.Validation)] RecorderMode recorderMode)
Expand All @@ -454,7 +450,6 @@ public void ExceptByEnumeratorTest([ValuesExcept(RecorderMode.Validation)] Recor
var result = DoRecorderRoundTrip(exceptEnumerator, recorderMode);
Assert.IsTrue(Util.AreEquivalentEnumerators(exceptEnumerator, result));
}
#endif

[Test]
[Dec.RecorderEnumerator.RecordableClosures]
Expand Down Expand Up @@ -604,3 +599,4 @@ public void SkipWhileEnumeratorTest([ValuesExcept(RecorderMode.Validation)] Reco
}
}
}
#endif

0 comments on commit 70d70f2

Please sign in to comment.