Ejemplo n.º 1
0
        public void DeterminesCapitalisationCorrectly(string input, Capitalisation expected)
        {
            CaseDetector detector = new CaseDetector();

            CasingSyntax result = detector.DetermineSyntax(input);

            Assert.Equal(expected, result.Capitalisation);
        }
Ejemplo n.º 2
0
        public void DeterminesUpperTerminationCorrectly(string input, TermTermination terminationType, char terminationChar)
        {
            CaseDetector detector = new CaseDetector();

            CasingSyntax result = detector.DetermineSyntax(input);

            Assert.Equal(terminationType, result.TerminationType);
            Assert.Equal(terminationChar, result.Terminator);
        }