예제 #1
0
 public void SetUp()
 {
     this.config = new Mock<IConfigurationProvider>();
     folderLocation = new Mock<IFolderLocation>();
     config.Setup(c => c.Get<IFolderLocation>(FileProvider.FolderLocationConfigurationKey, projectShared)).Returns(folderLocation.Object);
     target = new FileProvider(config.Object);
 }
예제 #2
0
 public void SetUp()
 {
     config = new Mock<IConfigurationProvider>();
     target = new FileProvider(config.Object);
 }
예제 #3
0
 public void Get_FolderMissing_Throws()
 {
     //Arrange
     target=new FileProvider(config.Object);
     SetupFolderPathConfig("abc");
     //Act
     ActualValueDelegate targetAction = () => target.Get("a");
     //Assert
     Assert.That(targetAction,Throws.TypeOf(typeof(DirectoryNotFoundException)));
 }