mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-14 01:25:40 -05:00
Fix invalid dacpac version crashing sqltoolsservice (#789)
* fix invalid dacpac version crashing sqltoolsservice
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
//
|
||||
// Copyright (c) Microsoft. All rights reserved.
|
||||
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
||||
//
|
||||
|
||||
using System;
|
||||
using Microsoft.SqlTools.ServiceLayer.DacFx;
|
||||
using Xunit;
|
||||
|
||||
namespace Microsoft.SqlTools.ServiceLayer.UnitTests.DacFx
|
||||
{
|
||||
public class DacFxTests
|
||||
{
|
||||
[Fact]
|
||||
public void ExtractParseVersionShouldThrowExceptionGivenInvalidVersion()
|
||||
{
|
||||
string invalidVersion = "invalidVerison";
|
||||
Assert.Throws<ArgumentException>(() => ExtractOperation.ParseVersion(invalidVersion));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user