Fix backup file validation error message (#472)

* Fix backup error message

* check for file existence for restore

* chang error message

* address pr comment

* cleanup
This commit is contained in:
Kate Shin
2017-10-02 15:45:28 -07:00
committed by GitHub
parent e7756b0bf1
commit 8e78ecf9a4
5 changed files with 66 additions and 64 deletions

View File

@@ -14,11 +14,11 @@ namespace Microsoft.SqlTools.ServiceLayer.UnitTests.DisasterRecovery
public class DisasterRecoveryFileValidatorUnitTests
{
[Fact]
public void ValidatorShouldReturnFalseForNullArgument()
public void ValidatorShouldReturnTrueForNullArgument()
{
string message;
bool result = DisasterRecoveryFileValidator.ValidatePaths(null, out message);
Assert.False(result);
Assert.True(result);
}
[Fact]