Esempio n. 1
0
        public void ByteArray()
        {
            NetworkAddress address1 = new NetworkAddress(new byte[] { 1, 2 });
            StringBuilder  walkLog  = new StringBuilder();

            ObjectWalkerDefault.GetValue(address1, "Bytes", o => walkLog.Append(o.ToString() + ","));

            Assert.AreEqual("son,father,grandfather,greatGrandfather,", walkLog.ToString());
        }
Esempio n. 2
0
        public void DefaultGenericOnFixture()
        {
            ParentChain   chain   = ParentChain.GetGrandFatherSample();
            StringBuilder walkLog = new StringBuilder();

            ObjectWalkerDefault.GetValue(chain, "Name", o => walkLog.Append(o.ToString() + ","));

            Assert.AreEqual("son,father,grandfather,greatGrandfather,", walkLog.ToString());
        }
Esempio n. 3
0
        public void IntArray()
        {
            MonthArray    months  = new MonthArray();
            StringBuilder walkLog = new StringBuilder();

            ObjectWalkerDefault.GetValue(months, "Numbers", o => walkLog.Append(o.ToString() + ","));

            Assert.AreEqual("son,father,grandfather,greatGrandfather,", walkLog.ToString());
        }