public void Should_be_able_to_compare_the_fancy_name() { Service.Instance.RegisterValueRetriever(new FancyNameValueRetriever()); Service.Instance.RegisterValueComparer(new FancyNameValueComparer()); var table = new Table("Field", "Value"); table.AddRow("Name", "John Galt"); var expectedName = new FancyName() { FirstName = "John", LastName = "Galt" }; var expectedLad = new FancyLad() { Name = expectedName }; table.CompareToInstance <FancyLad>(expectedLad); }
public void Should_be_able_to_compare_the_fancy_name() { Service.Instance.RegisterValueRetriever(new FancyNameValueRetriever()); Service.Instance.RegisterValueComparer(new FancyNameValueComparer()); var table = new Table("Field", "Value"); table.AddRow("Name", "John Galt"); var expectedName = new FancyName() { FirstName = "John", LastName = "Galt" }; var expectedLad = new FancyLad() { Name = expectedName }; table.CompareToInstance<FancyLad>(expectedLad); }