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()); }
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()); }
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()); }