Пример #1
0
 public void TestResouceNotFoundCompiled()
 {
     try
     {
         new ResourceBundle("wrong", null, new AssemblyBasedResourceLocator(GetType().Assembly, null));
         Assert.Fail("Expected exception");
     }
     catch (ResourceException Te)
     {
         Assert.That(Te.Message,
                     Is.EqualTo(ResourceException.ResourceBundleNotFound("wrong").Message));
     }
 }
Пример #2
0
 public void TestFileNotFoundCompiled()
 {
     try
     {
         new ResourceBundle("wrong", null);
         Assert.Fail("Expected exception");
     }
     catch (ResourceException Te)
     {
         Assert.That(Te.Message,
                     Is.EqualTo(ResourceException.ResourceBundleNotFound("wrong").Message));
     }
 }