public void Deserialize_NoFallbackPoorlyFormedText_Throws() { var serializer = new StandardServiceStackSerializer <LocalDate>(LocalDatePattern.Iso); Assert.Throws <UnparsableValueException>(() => serializer.Deserialize("2014/1/2")); }
public void UseRawSerializer_StandardSerializer_False() { var serializer = new StandardServiceStackSerializer <LocalDate>(LocalDatePattern.Iso); Assert.False(serializer.UseRawSerializer); }
public void Deserialize_NoFallback_Throws() { var serviceStackSerializer = new StandardServiceStackSerializer <LocalDate>(LocalDatePattern.Iso); Assert.Throws <UnparsableValueException>(() => serviceStackSerializer.Deserialize("Invalid")); }