-Rename Product.Expiry to Product.ExpiryDate in tests

This commit is contained in:
JamesNK
2009-03-21 09:19:16 +00:00
parent 9fd47e6334
commit b9bedd1233
6 changed files with 65 additions and 24 deletions
@@ -30,7 +30,7 @@ namespace Newtonsoft.Json.Tests.TestObjects
public class Product
{
public string Name;
public DateTime Expiry = new DateTime(2000, 1, 1, 0, 0, 0, DateTimeKind.Utc);
public DateTime ExpiryDate = new DateTime(2000, 1, 1, 0, 0, 0, DateTimeKind.Utc);
public decimal Price;
public string[] Sizes;
@@ -40,7 +40,7 @@ namespace Newtonsoft.Json.Tests.TestObjects
{
Product p = (Product)obj;
return (p.Name == Name && p.Expiry == Expiry && p.Price == Price);
return (p.Name == Name && p.ExpiryDate == ExpiryDate && p.Price == Price);
}
return base.Equals(obj);