public virtual void Init_CheckPrivateMemberEquality() { #region data var idx = new BinaryTreeIndex(); #endregion #region // init the index with some propertyIDs var definedPropertyIDs = new List<Int64>() { 0L, 1L }; idx.Init(definedPropertyIDs); // use some reflection action to get the private member of the index instance var indexedPropertyIDs = (List<Int64>)idx.GetType().GetField("_PropertyIDs", BindingFlags.NonPublic | BindingFlags.Instance).GetValue(idx); CollectionAssert.AreEqual(definedPropertyIDs, indexedPropertyIDs, "indexed propertyIDs do not match"); #endregion }