コード例 #1
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);
        }
コード例 #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);
        }
コード例 #3
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);
        }