コード例 #1
0
        public void Deserialize_NoFallbackPoorlyFormedText_Throws()
        {
            var serializer = new StandardServiceStackSerializer <LocalDate>(LocalDatePattern.Iso);

            Assert.Throws <UnparsableValueException>(() => serializer.Deserialize("2014/1/2"));
        }
コード例 #2
0
        public void UseRawSerializer_StandardSerializer_False()
        {
            var serializer = new StandardServiceStackSerializer <LocalDate>(LocalDatePattern.Iso);

            Assert.False(serializer.UseRawSerializer);
        }
コード例 #3
0
        public void Deserialize_NoFallback_Throws()
        {
            var serviceStackSerializer = new StandardServiceStackSerializer <LocalDate>(LocalDatePattern.Iso);

            Assert.Throws <UnparsableValueException>(() => serviceStackSerializer.Deserialize("Invalid"));
        }