public async Task NotFoundEmbeddedResource_ThrowNotFound()
 {
     // Arrange & Act & Assert
     Assert.ThrowsAsync <YamlTranslateException>(async() =>
     {
         await AssemblyTranslateContentClient.GetAssemblyContent(this.GetType().Assembly, "bad.yaml");
     });
 }
Beispiel #2
0
 public async Task NullSource_ThrowNotFound()
 {
     // Arrange & Act & Assert
     Assert.ThrowsAsync <FriendlyTranslateException>(async() =>
     {
         await AssemblyTranslateContentClient.GetAssemblyContent(this.GetType().Assembly, null);
     });
 }