From 1acb08b3afc41a2262f3bb95709541ef1de726e4 Mon Sep 17 00:00:00 2001 From: Simon Cropp Date: Fri, 15 Nov 2024 22:42:18 +1100 Subject: [PATCH] Update VersionTest.cs --- src/DiffEngine.Tests/VersionTest.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/DiffEngine.Tests/VersionTest.cs b/src/DiffEngine.Tests/VersionTest.cs index 30f59b11..4907c280 100644 --- a/src/DiffEngine.Tests/VersionTest.cs +++ b/src/DiffEngine.Tests/VersionTest.cs @@ -3,8 +3,10 @@ [Fact] public void Run() { + #if NET6_0_OR_GREATER // because v9 throw "windows not supported" for .net 6 var version = typeof(System.Management.ManagementObject).Assembly.GetName().Version!; Assert.Equal("8.0.0.0", version.ToString()); + #endif } } \ No newline at end of file