Exemplo n.º 1
0
 public void DoesDatabaseAlreadyExist_ShouldCallUnderlyingEngine()
 {
     var engine = MockRepository.GenerateStub<IMsSqlEngine>();
     var subject = new MsSqlUtilities(engine);
     subject.DoesDatabaseAlreadyExist();
     engine.AssertWasCalled(x=>x.DoesDatabaseAlreadyExist());
 }
Exemplo n.º 2
0
 public void CreateOrUpdate_ShouldCreateProperType()
 {
     var engine = MockRepository.GenerateStub<IMsSqlEngine>();
     var subject = new MsSqlUtilities(engine);
     Assert.That(subject.CreateOrUpdate, Is.TypeOf(typeof(MsSqlCreateOrUpdate)));
 }