-Replace tests console writes with asserts

This commit is contained in:
James Newton-King
2015-03-22 12:37:12 +13:00
parent a3df7ecd98
commit b9af7f227b
34 changed files with 380 additions and 362 deletions
@@ -111,16 +111,13 @@ namespace Newtonsoft.Json.Tests.Converters
IPerson person = people[0];
Console.WriteLine(person.GetType());
// Newtonsoft.Json.Tests.Employee
Assert.AreEqual("Newtonsoft.Json.Tests.Employee", person.GetType().Name);
Console.WriteLine(person.FirstName);
// Maurice
Assert.AreEqual("Maurice", person.FirstName);
Employee employee = (Employee)person;
Console.WriteLine(employee.JobTitle);
// Support
Assert.AreEqual("Support", employee.JobTitle);
}
public class MyClass