mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-25 17:24:17 -05:00
Adding more features to restore operation (#420)
* Adding more features to restore operations and added tests
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
//
|
||||
// Copyright (c) Microsoft. All rights reserved.
|
||||
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
||||
//
|
||||
|
||||
|
||||
using Microsoft.SqlTools.ServiceLayer.DisasterRecovery.Contracts;
|
||||
using Xunit;
|
||||
|
||||
namespace Microsoft.SqlTools.ServiceLayer.UnitTests.DisasterRecovery
|
||||
{
|
||||
public class LocalizedPropertyInfoTests
|
||||
{
|
||||
[Fact]
|
||||
public void PropertyDisplayNameShouldReturnNameWhenNotSet()
|
||||
{
|
||||
LocalizedPropertyInfo propertyInfo = new LocalizedPropertyInfo();
|
||||
propertyInfo.PropertyName = "name";
|
||||
|
||||
Assert.Equal(propertyInfo.PropertyDisplayName, propertyInfo.PropertyName);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void PropertyValudDisplayNameShouldReturnValudWhenNotSet()
|
||||
{
|
||||
LocalizedPropertyInfo propertyInfo = new LocalizedPropertyInfo();
|
||||
propertyInfo.PropertyName = "name";
|
||||
propertyInfo.PropertyValue = "value";
|
||||
|
||||
Assert.Equal(propertyInfo.PropertyValueDisplayName, propertyInfo.PropertyValue);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user