public void FieldTest() { Assert.IsFalse(IsReadOnly.Field <TestClass>("A")); Assert.IsTrue(IsReadOnly.Field <TestClass>("B")); Assert.IsFalse(IsReadOnly.Field <TestClass>("C")); Assert.IsFalse(IsReadOnly.Field <TestClass>("D")); Assert.IsFalse(IsReadOnly.Field <TestClass>("E")); }
public void DbRecordIsReadOnlyTest() { var name = GetMember.Name <CurrencyObject>(x => x.DbRecord); Assert.IsTrue(IsReadOnly.Field <CurrencyObject>(name)); }
public void DataIsReadOnlyTest() { var name = GetMember.Name <Account>(x => x.Data); Assert.IsTrue(IsReadOnly.Field <Account>(name)); }
[TestMethod] public void DbRecordIsReadOnlyTest() { var name = GetMember.Name <BidObject>(x => x.DbRecord); Assert.IsTrue(IsReadOnly.Field <BidObject>(name)); }