public void True_SaveSerializedData_NoData() { SerializableDictionary <int, string> testDictionary = new SerializableDictionary <int, string>(); testDictionary.SaveSerializedData(); Assert.IsTrue(testDictionary.GetSerializedDataLength() == 0, "Expected no length"); }
public void True_SaveSerializedData_Simple() { SerializableDictionary <int, string> testDictionary = new SerializableDictionary <int, string>(); testDictionary.Add(1, "one"); testDictionary.Add(2, "two"); testDictionary.SaveSerializedData(); Assert.IsTrue(testDictionary.GetSerializedDataLength() == 2, "Expected a length of 2."); }