public void AddAssemblyByName()
 {
     // in this test we only try to load an entirely assembly without check what was load
     XmlMappingLoader ml = new XmlMappingLoader();
     ml.AddAssembly(Assembly.GetExecutingAssembly().FullName);
     Assert.Less(0, ml.Mappings.Length);
 }
 public void AddWrongAssembly()
 {
     XmlMappingLoader ml = new XmlMappingLoader();
     ml.AddAssembly("NoExistAssemblyName");
 }
Esempio n. 3
0
 public void AddWrongAssembly()
 {
     XmlMappingLoader ml = new XmlMappingLoader();
     Assert.Throws<ValidatorConfigurationException>(() =>ml.AddAssembly("NoExistAssemblyName"));
 }