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

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