コード例 #1
0
        public void True_OverwriteSerializedData_LoadSerializedData_Simple()
        {
            SerializableDictionary <int, string> testDictionary = new SerializableDictionary <int, string>();

            testDictionary.OverwriteSerializedData(new int[2] {
                1, 2
            }, new string[2] {
                "one", "two"
            });
            testDictionary.LoadSerializedData();
            Assert.IsTrue(testDictionary.Count == 2 && testDictionary[2] == "two",
                          $"Expected a length of 2, and the elements to match (found {testDictionary[1]}).");
        }