public void ReflectionExtensionDisplayNameMatchesPropertyNameWhenAttributeMissing() { MockAccount account = new MockAccount() { AccountNumber = 1234567 }; Assert.AreEqual("Blah", account.DisplayName(p => p.Blah)); }
public void ReflectionExtensionDisplayNameGetsAttributeValue() { MockAccount account = new MockAccount() { AccountNumber = 1234567 }; Assert.AreEqual("Account Number", account.DisplayName(p => p.AccountNumber)); }