public void SdkPath_VersionFileDoesNotExist_DoesNotGetVersion()
        {
            var sdkPath = CreateFakeSdkFolder(version: null);

            var got = SdkOverrideInstanceProvider.TryGetVersion(
                sdkPath,
                out var version,
                out var errorString);

            Assert.False(got);
            Assert.NotNull(errorString);
        }
        public void SdkPath_PathDoesNotExist_DoesNotGetVersion()
        {
            var sdkPath = "ThisPathDoesNotExist";

            var got = SdkOverrideInstanceProvider.TryGetVersion(
                sdkPath,
                out var version,
                out var errorString);

            Assert.False(got);
            Assert.NotNull(errorString);
        }
        public void SdkPath_LessThanMinimumVersion_DoesNotGetVersion()
        {
            var versionString = "5.0.100";
            var sdkPath       = CreateFakeSdkFolder(version: new(versionString));

            var got = SdkOverrideInstanceProvider.TryGetVersion(
                sdkPath,
                out var version,
                out var errorString);

            Assert.False(got);
            Assert.NotNull(errorString);
        }
        public void SdkPath_PreReleaseVersion_DoesGetVersion()
        {
            var versionString = "7.0.100-preview.2";
            var sdkPath       = CreateFakeSdkFolder(version: new(versionString));

            var got = SdkOverrideInstanceProvider.TryGetVersion(
                sdkPath,
                out var version,
                out var errorString);

            Assert.Null(errorString);
            Assert.True(got);
            Assert.Equal(versionString, version.ToString());
        }