예제 #1
0
 public void Throws_if_type_not_available_to_Castle()
 {
     using (var context = new NeweyContextN4())
     {
         Assert.Throws <GeneratorException>(() => context.CreateProxy <McLarenMp421>());
     }
 }
예제 #2
0
 public void Throws_if_create_proxy_for_non_mapped_type()
 {
     using (var context = new NeweyContextN4())
     {
         Assert.Equal(
             CoreStrings.EntityTypeNotFound(nameof(March82GGtp)),
             Assert.Throws <InvalidOperationException>(
                 () => context.CreateProxy <March82GGtp>()).Message);
     }
 }