private void Window_Loaded(object sender, RoutedEventArgs e) { //todo: this is taking up resource, should run thread System.Diagnostics.Debug.WriteLine("Start binding character map at " + DateTime.Now); characterManager = new CharacterCollection("Traditional Arabic");//Arial this.DataContext = characterManager; //mapSpace.ItemsSource = characterManager.Items; }
public void CharacterCollectionConstructorTest() { string fontFamily = "Arial"; CharacterCollection target = new CharacterCollection(fontFamily); Assert.AreEqual(55296, target.Items.Count); //Assert.AreEqual(65509, target.Items.Count); //Assert.AreEqual(32767 + 1, target.Items.Count); }