Esempio 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");
        }
Esempio 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.");
        }