public void TestNestedDictionaryWithSimpleData() { var obj = new DataWithDictionary <SimpleData>(); obj.Data[0] = new SimpleData(5); obj.Data[4] = new SimpleData(72); obj.Data[7] = new SimpleData(72); var clone = Serializer.DeepClone(obj); Assert.NotSame(obj, clone); AssertEqual(obj.Data, clone.Data); }
public void TestNestedDictionaryWithStrings() { var obj = new DataWithDictionary <string>(); obj.Data[0] = "abc"; obj.Data[4] = "def"; obj.Data[7] = "abc"; var clone = Serializer.DeepClone(obj); Assert.NotSame(obj, clone); AssertEqual(obj.Data, clone.Data); }