Skip to content
This repository was archived by the owner on Nov 10, 2026. It is now read-only.
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
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace aweXpect.Reflection.Tests;

#pragma warning disable CS0612 // Intentional reference to an obsolete test fixture member
#pragma warning disable CS0612, CS0618 // Intentional reference to an obsolete test fixture member
public sealed partial class ThatField
{
public sealed class IsNotObsolete
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace aweXpect.Reflection.Tests;

#pragma warning disable CS0612 // Intentional reference to an obsolete test fixture member
#pragma warning disable CS0612, CS0618 // Intentional reference to an obsolete test fixture member
public sealed partial class ThatField
{
public sealed class IsObsolete
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

namespace aweXpect.Reflection.Tests;

#pragma warning disable CS0612 // Intentional reference to an obsolete test fixture member
#pragma warning disable CS0612, CS0618 // Intentional reference to an obsolete test fixture member
public sealed partial class ThatFields
{
public sealed class AreNotObsolete
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

namespace aweXpect.Reflection.Tests;

#pragma warning disable CS0612 // Intentional reference to an obsolete test fixture member
#pragma warning disable CS0612, CS0618 // Intentional reference to an obsolete test fixture member
public sealed partial class ThatFields
{
public sealed class AreObsolete
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

namespace aweXpect.Reflection.Tests;

#pragma warning disable CS0612 // Intentional reference to an obsolete test fixture member
#pragma warning disable CS0612, CS0618 // Intentional reference to an obsolete test fixture member
public sealed partial class ThatProperties
{
public sealed class AreNotObsolete
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

namespace aweXpect.Reflection.Tests;

#pragma warning disable CS0612 // Intentional reference to an obsolete test fixture member
#pragma warning disable CS0612, CS0618 // Intentional reference to an obsolete test fixture member
public sealed partial class ThatProperties
{
public sealed class AreObsolete
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace aweXpect.Reflection.Tests;

#pragma warning disable CS0612 // Intentional reference to an obsolete test fixture member
#pragma warning disable CS0612, CS0618 // Intentional reference to an obsolete test fixture member
public sealed partial class ThatProperty
{
public sealed class IsNotObsolete
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace aweXpect.Reflection.Tests;

#pragma warning disable CS0612 // Intentional reference to an obsolete test fixture member
#pragma warning disable CS0612, CS0618 // Intentional reference to an obsolete test fixture member
public sealed partial class ThatProperty
{
public sealed class IsObsolete
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ async Task Act()
[Fact]
public async Task WhenTypeIsObsolete_ShouldFail()
{
#pragma warning disable CS0612
#pragma warning disable CS0612, CS0618
Type subject = typeof(ObsoleteClass);
#pragma warning restore CS0612
#pragma warning restore CS0612, CS0618

async Task Act()
{
Expand Down Expand Up @@ -84,9 +84,9 @@ Expected that subject
[Fact]
public async Task WhenTypeIsObsolete_ShouldSucceed()
{
#pragma warning disable CS0612
#pragma warning disable CS0612, CS0618
Type subject = typeof(ObsoleteClass);
#pragma warning restore CS0612
#pragma warning restore CS0612, CS0618

async Task Act()
{
Expand Down
8 changes: 4 additions & 4 deletions Tests/aweXpect.Reflection.Tests/ThatType.IsObsolete.Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ public sealed class Tests
[Fact]
public async Task WhenTypeIsObsolete_ShouldSucceed()
{
#pragma warning disable CS0612
#pragma warning disable CS0612, CS0618
Type subject = typeof(ObsoleteClass);
#pragma warning restore CS0612
#pragma warning restore CS0612, CS0618

async Task Act()
{
Expand Down Expand Up @@ -66,9 +66,9 @@ public sealed class NegatedTests
[Fact]
public async Task WhenTypeIsObsolete_ShouldFail()
{
#pragma warning disable CS0612
#pragma warning disable CS0612, CS0618
Type subject = typeof(ObsoleteClass);
#pragma warning restore CS0612
#pragma warning restore CS0612, CS0618

async Task Act()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ async Task Act()
[Fact]
public async Task WhenTypesContainObsoleteTypes_ShouldFail()
{
#pragma warning disable CS0612
#pragma warning disable CS0612, CS0618
IEnumerable<Type> subject =
[
typeof(ObsoleteClass),
typeof(ClassWithObsoleteMembers),
];
#pragma warning restore CS0612
#pragma warning restore CS0612, CS0618

async Task Act()
{
Expand Down Expand Up @@ -81,13 +81,13 @@ but it only contained non-obsolete items [
[Fact]
public async Task WhenTypesContainObsoleteTypes_ShouldSucceed()
{
#pragma warning disable CS0612
#pragma warning disable CS0612, CS0618
IEnumerable<Type> subject =
[
typeof(ObsoleteClass),
typeof(ClassWithObsoleteMembers),
];
#pragma warning restore CS0612
#pragma warning restore CS0612, CS0618

async Task Act()
{
Expand Down Expand Up @@ -121,14 +121,14 @@ async Task Act()
[Fact]
public async Task WhenTypesContainObsoleteTypes_ShouldFail()
{
#pragma warning disable CS0612
#pragma warning disable CS0612, CS0618
IAsyncEnumerable<Type?> subject = new[]
{
typeof(ObsoleteClass),
typeof(ClassWithObsoleteMembers),
}
.ToTestAsyncEnumerable<Type?>();
#pragma warning restore CS0612
#pragma warning restore CS0612, CS0618

async Task Act()
{
Expand Down
28 changes: 14 additions & 14 deletions Tests/aweXpect.Reflection.Tests/ThatTypes.AreObsolete.Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ public sealed class Tests
[Fact]
public async Task WhenAllTypesAreObsolete_ShouldSucceed()
{
#pragma warning disable CS0612
#pragma warning disable CS0612, CS0618
IEnumerable<Type> subject =
[
typeof(ObsoleteClass),
];
#pragma warning restore CS0612
#pragma warning restore CS0612, CS0618

async Task Act()
{
Expand All @@ -31,13 +31,13 @@ async Task Act()
[Fact]
public async Task WhenTypesContainNonObsoleteTypes_ShouldFail()
{
#pragma warning disable CS0612
#pragma warning disable CS0612, CS0618
IEnumerable<Type> subject =
[
typeof(ObsoleteClass),
typeof(ClassWithObsoleteMembers),
];
#pragma warning restore CS0612
#pragma warning restore CS0612, CS0618

async Task Act()
{
Expand All @@ -60,12 +60,12 @@ public sealed class NegatedTests
[Fact]
public async Task WhenAllTypesAreObsolete_ShouldFail()
{
#pragma warning disable CS0612
#pragma warning disable CS0612, CS0618
IEnumerable<Type> subject =
[
typeof(ObsoleteClass),
];
#pragma warning restore CS0612
#pragma warning restore CS0612, CS0618

async Task Act()
{
Expand All @@ -85,13 +85,13 @@ but it only contained obsolete items [
[Fact]
public async Task WhenTypesContainNonObsoleteTypes_ShouldSucceed()
{
#pragma warning disable CS0612
#pragma warning disable CS0612, CS0618
IEnumerable<Type> subject =
[
typeof(ObsoleteClass),
typeof(ClassWithObsoleteMembers),
];
#pragma warning restore CS0612
#pragma warning restore CS0612, CS0618

async Task Act()
{
Expand All @@ -108,13 +108,13 @@ public sealed class AsyncEnumerableTests
[Fact]
public async Task WhenAllTypesAreObsolete_ShouldSucceed()
{
#pragma warning disable CS0612
#pragma warning disable CS0612, CS0618
IAsyncEnumerable<Type?> subject = new[]
{
typeof(ObsoleteClass),
}
.ToTestAsyncEnumerable<Type?>();
#pragma warning restore CS0612
#pragma warning restore CS0612, CS0618

async Task Act()
{
Expand All @@ -127,14 +127,14 @@ async Task Act()
[Fact]
public async Task WhenTypesContainNonObsoleteTypes_ShouldFail()
{
#pragma warning disable CS0612
#pragma warning disable CS0612, CS0618
IAsyncEnumerable<Type?> subject = new[]
{
typeof(ObsoleteClass),
typeof(ClassWithObsoleteMembers),
}
.ToTestAsyncEnumerable<Type?>();
#pragma warning restore CS0612
#pragma warning restore CS0612, CS0618

async Task Act()
{
Expand All @@ -154,13 +154,13 @@ but it contained non-obsolete items [
[Fact]
public async Task WhenAllTypesAreObsolete_Negated_ShouldFail()
{
#pragma warning disable CS0612
#pragma warning disable CS0612, CS0618
IAsyncEnumerable<Type?> subject = new[]
{
typeof(ObsoleteClass),
}
.ToTestAsyncEnumerable<Type?>();
#pragma warning restore CS0612
#pragma warning restore CS0612, CS0618

async Task Act()
{
Expand Down
Loading