public void RegistrationNotSupported() { var locator = new Mock <IServiceLocator>(); var factory = new LocatorXmlMapperFactory(locator.Object); var mapper = new ParentXmlMapper(null); try { factory.Register <Parent, XElement>(mapper); throw new NotImplementedException("Should raise NotSupportedException"); } catch (NotSupportedException) { } }
public void RegistrationNotSupported() { var locator = new Mock<IServiceLocator>(); var factory = new LocatorXmlMapperFactory(locator.Object); var mapper = new ParentXmlMapper(null); try { factory.Register<Parent, XElement>(mapper); throw new NotImplementedException("Should raise NotSupportedException"); } catch (NotSupportedException) { } }