public void TestHumanizeShouldReturnEmptyStringIfThereIsNoChange() { var log = new AuditLog { Type = "User", Changes = @"{}" }; string actual = AuditLogHumanizer.Humanize(log); Assert.AreEqual("", actual); }
public void TestHumanize() { var log = new AuditLog { Type = "User", Changes = @"{""UserName"":""asdf"",""Email"":""email address""}" }; string actual = AuditLogHumanizer.Humanize(log); Assert.AreEqual("Name => 'asdf', Email => 'email address'", actual); }