Example #1
0
        public void PluralizationTest()
        {
            IncrementTestCount();
            var result = PluralizationServiceUtil.DoesWordContainSuffix("pepes", new string[] { "es" }, System.Globalization.CultureInfo.InvariantCulture);

            Assert.IsTrue(result);
        }
Example #2
0
        public void PluralizationTest2()
        {
            IncrementTestCount();
            var result = PluralizationServiceUtil.TryInflectOnSuffixInWord("pep", new string[] { "es" }, operationOnWord,
                                                                           System.Globalization.CultureInfo.InvariantCulture, out string pepes);

            Assert.IsFalse(result);
        }