Exemplo n.º 1
0
 private MockDetector CreateSut(bool firstReturn, bool secondReturn, bool thirdReturn)
 {
     var fileSystem = Substitute.For<IFileSystem>();
     fileSystem.IsAssemblyAvailable(Arg.Any<string>()).Returns(firstReturn, secondReturn, thirdReturn);
     var sut = new MockDetector(fileSystem);
     return sut;
 }
Exemplo n.º 2
0
 public void should_return_true_if_assembly_available()
 {
     var sut = new MockDetector();
     var result = sut.FindAvailableMock().Invoke();
     result.ShouldBeOfType<NSubstituteMockFactory>();
 }