public void FromJson_UTF8_CorrectCase() { //arrange var customClass = new CustomStringClass(); //act new JsonConverter().FromJson(customClass, Encoding.UTF8.GetBytes("{\"Property\":\"UPERCASE\"}")); //assert Assert.That(customClass.Property, Is.EqualTo("upercase")); }
public void FromJson_CorrectDateTime() { //arrange var customClass = new CustomStringClass(); //act new JsonConverter().FromJson(customClass, "{\"DateTime\":\"UPERCASE\"}"); //assert Assert.That(customClass.Property, Is.EqualTo("upercase")); }