PathToUpdateScripts() публичный Метод

public PathToUpdateScripts ( string path ) : MsSqlUpdate
path string
Результат MsSqlUpdate
Пример #1
0
        public void ShouldSetPathOnEngine()
        {
            string path = @"c:\temp";

            var engine  = MockRepository.GenerateMock <IMsSqlEngine>();
            var subject = new MsSqlCreate(engine);

            var pathToUpdateScripts = subject.PathToUpdateScripts(path);

            Assert.That(pathToUpdateScripts, Is.TypeOf(typeof(MsSqlUpdate)));

            engine.AssertWasCalled(x => x.PathToUpdateScripts = path);
        }
Пример #2
0
        public void ShouldSetPathOnEngine()
        {
            string path = @"c:\temp";

            var engine = MockRepository.GenerateMock<IMsSqlEngine>();
            var subject = new MsSqlCreate(engine);

            var pathToUpdateScripts = subject.PathToUpdateScripts(path);

            Assert.That(pathToUpdateScripts, Is.TypeOf(typeof (MsSqlUpdate)));

            engine.AssertWasCalled(x=>x.PathToUpdateScripts=path);
        }