Пример #1
0
        public void GivenDefaultInstancePath_ShouldReturnDot()
        {
            var path = InstancePathConversion.GetInstsPath("LOCALHOST", "MSSQLSERVER");

            Assert.That(path, Is.EqualTo("."));

            path = InstancePathConversion.GetInstsPath(".", "MSSQLSERVER");
            Assert.That(path, Is.EqualTo("."));
        }
Пример #2
0
        public void GiveAnInstNameContainsMSSQLSERVER_ShouldntBeReplaced()
        {
            var path = InstancePathConversion.GetInstsPath("LOCALHOST", "MSSQLSERVER2012");

            Assert.That(path, Is.EqualTo(@".\MSSQLSERVER2012"));
        }
Пример #3
0
        public void LocalHostShouldBeReplacedWithDot()
        {
            var path = InstancePathConversion.GetInstsPath("LOCALHOST", "SQLEXPRESS");

            Assert.That(path, Is.EqualTo(@".\SQLEXPRESS"));
        }