Exemplo n.º 1
0
        public void Test()
        {
            var instance = new FrequencyListManager();

            Assert.AreEqual(347, instance.BNC.GetIndex("mother").Index);
            Assert.AreEqual(900, instance.Internet.GetIndex("mother").Index);
            Assert.AreEqual(2129, instance.Reuters.GetIndex("mother").Index);
            Assert.AreEqual(241, instance.Subtitles.GetIndex("mother").Index);
        }
Exemplo n.º 2
0
        public async Task Setup()
        {
            manager = new FrequencyListManager();
            var         factory = new SymSpellFactory(manager.Common);
            List <Task> tasks   = new List <Task>();

            tasks.Add(Task.Run(() => instance         = factory.Construct()));
            tasks.Add(Task.Run(() => instanceCompound = factory.ConstructCompound()));
            await Task.WhenAll(tasks).ConfigureAwait(false);
        }