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