public void TryGetVersion_ReturnsFalseWhenNoVersionsProvided() { // Arrange var toolset = new KoreBuildSettings.VisualStudioToolset(); // Act var result = VsWhere.TryGetVersion(toolset, out var version); // Assert Assert.False(result); Assert.Null(version); }
public void TryGetVersion_ReturnsVersionRange() { // Arrange var expectedVersion = "[15.0,16.0)"; var toolset = new KoreBuildSettings.VisualStudioToolset() { VersionRange = expectedVersion, }; // Act var result = VsWhere.TryGetVersion(toolset, out var version); // Assert Assert.True(result); Assert.Equal(expectedVersion, version); }