public void MoneyDeserializationTestWithStrings(string description, TestObjectWithText testObject, string jsonText) { var deserializedObject = JsonConvert.DeserializeObject <TestObjectWithText>(jsonText); Assert.AreEqual(testObject.NotNullableMoney, deserializedObject.NotNullableMoney); Assert.AreEqual(testObject.NullableTextMyMoney, deserializedObject.NullableTextMyMoney); Assert.AreEqual(testObject.NullableMoney, deserializedObject.NullableMoney); Assert.AreEqual(testObject.NotNullableMoney, deserializedObject.NotNullableMoney);; }
public void MoneySerializationTestWithStrings(string description, TestObjectWithText testObject, string expectedJson) { Assert.AreEqual(JsonConvert.SerializeObject(testObject), expectedJson); }