PathToCreateScript() public method

public PathToCreateScript ( string path ) : MsSqlCreate
path string
return MsSqlCreate
        public void ShouldSetPropertyOnEngine()
        {
            string pathToCreateScript = @"c:\temp";

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

            MsSqlCreate createScript = subject.PathToCreateScript(pathToCreateScript);

            Assert.That(createScript, Is.Not.Null);
            engine.AssertWasCalled(x=>x.PathToCreateScript=pathToCreateScript);
        }
Beispiel #2
0
        public void ShouldSetPropertyOnEngine()
        {
            string pathToCreateScript = @"c:\temp";

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

            MsSqlCreate createScript = subject.PathToCreateScript(pathToCreateScript);

            Assert.That(createScript, Is.Not.Null);
            engine.AssertWasCalled(x => x.PathToCreateScript = pathToCreateScript);
        }