Exemplo n.º 1
0
 public void VersionTable_ShouldSetVersionOnEngine()
 {
     var engine = MockRepository.GenerateMock<IMsSqlEngine>();
     var subject = new MsSqlUpdate(engine);
     var msSqlVersionTable = subject.VersionTable("blah");
     Assert.That(msSqlVersionTable, Is.TypeOf(typeof(MsSqlVersionTable)));
     engine.AssertWasCalled(x=>x.VersionTable="blah");
 }
Exemplo n.º 2
0
        public void VersionTable_ShouldSetVersionOnEngine()
        {
            var engine            = MockRepository.GenerateMock <IMsSqlEngine>();
            var subject           = new MsSqlUpdate(engine);
            var msSqlVersionTable = subject.VersionTable("blah");

            Assert.That(msSqlVersionTable, Is.TypeOf(typeof(MsSqlVersionTable)));
            engine.AssertWasCalled(x => x.VersionTable = "blah");
        }