From 8efa1454e4432044aaffaf006462eb7c198cc95c Mon Sep 17 00:00:00 2001 From: Timothy Schenk Date: Sat, 31 Dec 2022 17:46:08 +0100 Subject: [PATCH] Remove redundant qualifier --- Server.Tests/PacketTests.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Server.Tests/PacketTests.cs b/Server.Tests/PacketTests.cs index 59dd06f..a9d3def 100644 --- a/Server.Tests/PacketTests.cs +++ b/Server.Tests/PacketTests.cs @@ -9,11 +9,11 @@ public class PacketTests public void TestPacketInheritingIPacket() { var allTypes = AppDomain.CurrentDomain.GetAssemblies().SelectMany(x => x.GetTypes()) - .Where(x => x.IsAssignableTo(typeof(Server.Packets.IPacket)) && x.IsClass); + .Where(x => x.IsAssignableTo(typeof(Packets.IPacket)) && x.IsClass); if (!allTypes.Any()) true.Should().BeTrue("There have been no types found which can be checked"); else - allTypes.All(t => t.GetCustomAttributes().Any()) + allTypes.All(t => t.GetCustomAttributes().Any()) .Should().BeTrue("All types inheriting from IPacket should have the PacketIdAttribute attribute."); } } \ No newline at end of file