Chronic.Tests.NumerizerTests.ordinal_numbers_are_parsed_correctly C# (CSharp) 메소드

ordinal_numbers_are_parsed_correctly() 개인적인 메소드

private ordinal_numbers_are_parsed_correctly ( ) : void
리턴 void
        public void ordinal_numbers_are_parsed_correctly()
        {
            new[,]
                {
                    {"first", "1st"},
                    {"second", "second"},
                    {"second day", "2nd day"},
                    {"second of may", "2nd of may"},
                    {"third of may", "2rd of may"},
                    {"fifth", "5th"},
                    {"twenty third", "23rd"},
                    {"first day month two", "1st day month 2"}
                }.ForEach<string, string>(
                    (p, r) =>
                    {
                        // Use pre_normalize here instead of Numerizer directly because
                        // pre_normalize deals with parsing 'second' appropriately
                        Assert.Equal(r, Tokenizer.Normalize(r));
                    });
        }