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

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