public void GetResource_GetByValidHandle_ShouldSucceed()
 {
     var resourceManager = new ResourceManager();
       var resourceHandle = resourceManager.AddResource (new FileInfo ("c:/this/is/a/test"));
       Assert.That (() => resourceManager.GetResource (resourceHandle), Throws.Nothing);
 }
 public void GetResource_GetByInvalidHandle_ShouldThrowInvalidOperation()
 {
     var resourceManager = new ResourceManager();
       var resourceHandle = new ResourceHandle (Guid.NewGuid());
       Assert.That (
       () => resourceManager.GetResource (resourceHandle),
       Throws.InvalidOperationException.With.Message.EqualTo (string.Format ("Resource {0} not found.", resourceHandle)));
 }