public void SetNetCoreVersion_NetCoreAsName()
    {
        var input = new Runtime(".NET Core");

        RuntimeInfo.SetNetCoreVersion(input);

        Assert.NotNull(input.Version);
        Assert.Equal(".NET Core", input.Name);
    }
    public void SetNetCoreVersion_Net5Runtime_NullNetCoreVersion()
    {
        var input = new Runtime(".NET");

        RuntimeInfo.SetNetCoreVersion(input);

        Assert.Equal(".NET", input.Name);
        Assert.Null(input.Version);
    }
    public void SetReleaseAndVersionNetFx_OnNetFx_NonNullReleaseAndVersion()
    {
        // This test is only relevant when running on CLR.
        Skip.If(RuntimeInfo.GetRuntime().IsMono());

        var input = new Runtime(".NET Framework");

        RuntimeInfo.SetNetFxReleaseAndVersion(input);

        input.Version.Should().NotBeNull();
        input.FrameworkInstallation.Should().NotBeNull();
        input.FrameworkInstallation.Version.Should().NotBeNull();
    }