public ODataConverterTest() { // This line gives us only the reference edmmodel. // It isn't used in the converter. CsdlReader.TryParse(XmlReader.Create(new StringReader(sampleMetadataDocument)), out model, out _); converter = new ODataConverter(); Item = converter.ConvertCollection(sampleMetadataDocument); }
public void ConvertingAWrongMetadataDocumentThrowsAnError() { Assert.Throws <ODataException>(() => converter.ConvertCollection("random string")); }