Esempio n. 1
0
 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"));
 }
Esempio n. 2
0
        public void DbRecordIsReadOnlyTest()
        {
            var name = GetMember.Name <CurrencyObject>(x => x.DbRecord);

            Assert.IsTrue(IsReadOnly.Field <CurrencyObject>(name));
        }
Esempio n. 3
0
        public void DataIsReadOnlyTest()
        {
            var name = GetMember.Name <Account>(x => x.Data);

            Assert.IsTrue(IsReadOnly.Field <Account>(name));
        }
Esempio n. 4
0
        [TestMethod] public void DbRecordIsReadOnlyTest()
        {
            var name = GetMember.Name <BidObject>(x => x.DbRecord);

            Assert.IsTrue(IsReadOnly.Field <BidObject>(name));
        }