Exemplo n.º 1
0
        public void FromDataFormatToRestSharpDataFormat_IfDataFormatExists_MapsCorrectly(
            DataFormat source,
            RestSharp.DataFormat expected)
        {
            var result = source.Map <DataFormat, RestSharp.DataFormat>();

            Assert.AreEqual(expected, result);
        }
Exemplo n.º 2
0
 public void FromDataFormatToRestSharpDataFormat_IfDataFormatDoesNotExist_ThrowsException(DataFormat source)
 {
     Assert.Catch(() => source.Map <DataFormat, RestSharp.DataFormat>());
 }