Пример #1
0
 public void WellKnown()
 {
     foreach (var commandKeyBinding in CommandKeyBindings)
     {
         var text = SettingSerializer.ConvertToString(new[] { commandKeyBinding });
         var list = SettingSerializer.ConvertToCommandKeyBindings(text);
         Assert.Equal(1, list.Count);
         ExpectEqual(commandKeyBinding, list[0]);
     }
 }
Пример #2
0
            public void WellKnownAll()
            {
                var text = SettingSerializer.ConvertToString(CommandKeyBindings);
                var list = SettingSerializer.ConvertToCommandKeyBindings(text);

                Assert.Equal(CommandKeyBindings.Count, list.Count);
                for (int i = 0; i < list.Count; i++)
                {
                    ExpectEqual(CommandKeyBindings[i], list[i]);
                }
            }