Update Environment.Version test to not expect hardcoded version (dotnet/corefx#35512)
authorJan Kotas <jkotas@microsoft.com>
Fri, 22 Feb 2019 10:55:41 +0000 (02:55 -0800)
committerStephen Toub <stoub@microsoft.com>
Fri, 22 Feb 2019 10:55:41 +0000 (05:55 -0500)
* Update Environment.Version test to not expect hardcoded version

Contributes to https://github.com/dotnet/corefx/issues/31099

* Fix nit

Commit migrated from https://github.com/dotnet/corefx/commit/d8473a7bab7cb9b26344281913c488b7475644bb

src/libraries/System.Runtime.Extensions/tests/System/EnvironmentTests.cs

index 63eeab3215e40d5a3923c5267e7755ce0896774a..f96207c25549e9742171e48042b8aa81efe3cc6a 100644 (file)
@@ -172,9 +172,9 @@ namespace System.Tests
         }
 
         [Fact]
-        public void Version_MatchesFixedVersion()
+        public void Version_Valid()
         {
-            Assert.Equal(new Version(4, 0, 30319, 42000), Environment.Version);
+            Assert.True(Environment.Version >= new Version(3, 0));
         }
 
         [Fact]