Пример #1
0
        public void ConvertToCurrency_ValueShouldSuccessfullyRoundTrip(object o)
        {
            var subject = new NumberAsCurrencyConverter();

            JsonConverterTestHelper.AssertCanConvert(subject, o);
            JsonConverterTestHelper.AssertRoundTripOfValue(subject, o);
        }
Пример #2
0
        public void ConvertToDate_ValueShouldSuccessfullyRoundTrip()
        {
            var dateTime = TestData.Create <DateTime>().Date;
            var subject  = new IsoDateConverter();

            JsonConverterTestHelper.AssertCanConvert(subject, dateTime);
            JsonConverterTestHelper.AssertRoundTripOfValue(subject, dateTime);
        }