Ejemplo n.º 1
0
        public void True_SaveSerializedData_NoData()
        {
            SerializableDictionary <int, string> testDictionary = new SerializableDictionary <int, string>();

            testDictionary.SaveSerializedData();

            Assert.IsTrue(testDictionary.GetSerializedDataLength() == 0, "Expected no length");
        }
Ejemplo n.º 2
0
        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.");
        }