public static void Compare(DictionaryMessage a, DictionaryMessage b) { if (a.m_intMap == null) { A(a.m_intMap == b.m_intMap); } else { A(a.m_intMap.Count == b.m_intMap.Count); foreach (var kvp in a.m_intMap) { A(kvp.Value == b.m_intMap[kvp.Key]); } } if (a.m_obMap == null) { A(a.m_obMap == b.m_obMap); } else { A(a.m_obMap.Count == b.m_obMap.Count); foreach (var kvp in a.m_obMap) { kvp.Value.Compare(b.m_obMap[kvp.Key]); } } }
public static void Compare(DictionaryMessage a, DictionaryMessage b) { if (a.m_intMap == null) A(a.m_intMap == b.m_intMap); else { A(a.m_intMap.Count == b.m_intMap.Count); foreach (var kvp in a.m_intMap) A(kvp.Value == b.m_intMap[kvp.Key]); } if (a.m_obMap == null) A(a.m_obMap == b.m_obMap); else { A(a.m_obMap.Count == b.m_obMap.Count); foreach (var kvp in a.m_obMap) kvp.Value.Compare(b.m_obMap[kvp.Key]); } }