public void FromDataFormatToRestSharpDataFormat_IfDataFormatExists_MapsCorrectly( DataFormat source, RestSharp.DataFormat expected) { var result = source.Map <DataFormat, RestSharp.DataFormat>(); Assert.AreEqual(expected, result); }
public void FromDataFormatToRestSharpDataFormat_IfDataFormatDoesNotExist_ThrowsException(DataFormat source) { Assert.Catch(() => source.Map <DataFormat, RestSharp.DataFormat>()); }