Exemplo n.º 1
0
 public void GetFromRepositoryUsesStrictBehaviorSetOnRepository()
 {
     using (var mock = AutoMock.GetFromRepository(new MockRepository(MockBehavior.Strict)))
     {
         Assert.Throws <MockException>(() => RunWithSingleSetupationTest(mock));
     }
 }
Exemplo n.º 2
0
 public void GetFromRepositoryUsesStrictBehaviorSetOnRepository()
 {
     using (var mock = AutoMock.GetFromRepository(new MockRepository(MockBehavior.Strict)))
     {
         RunWithSingleSetupationTest(mock);
     }
 }
Exemplo n.º 3
0
 public override AutoMock CreateInternalMocker()
 {
     return(AutoMock.GetFromRepository(_repo));
 }