Example #1
0
        public void DoesWritingSystemUseKeyman_NonKeymanKeyboardReturnsFalse()
        {
            CoreWritingSystemDefinition ws = Cache.LangProject.DefaultAnalysisWritingSystem;
            var testKeyboard = new DefaultKeyboardDefinition("test", "keyboard", "layout", "locale", true);

            ws.KnownKeyboards.Add(testKeyboard);

            Assert.That(ReapRamp.DoesWritingSystemUseKeyman(ws), Is.False,
                        "Unable to determine if a writing system is keyman, the location or name of the class in Palaso probably changed");
        }
Example #2
0
        public void DoesWritingSystemUseKeyman_NonKeymanKeyboardReturnsFalse()
        {
            var ws           = Cache.LangProject.DefaultAnalysisWritingSystem;
            var palasoWs     = ws as PalasoWritingSystem;
            var testKeyboard = new DefaultKeyboardDefinition {
                IsAvailable = true
            };

            // ReSharper disable once PossibleNullReferenceException
            palasoWs.AddKnownKeyboard(testKeyboard);

            Assert.That(ReapRamp.DoesWritingSystemUseKeyman(ws), Is.False,
                        "Unable to determine if a writing system is keyman, the location or name of the class in Palaso probably changed");
        }