예제 #1
0
        public void PunctuationWithoutWhitespace()
        {
            const string phrase   = "Complementary metal-oxide semiconductor";
            const string expected = "CMOS";

            Assert.Equal(expected, Tasks.Acronym(phrase));
        }
예제 #2
0
        public void Punctuation()
        {
            const string phrase   = "First In, First Out";
            const string expected = "FIFO";

            Assert.Equal(expected, Tasks.Acronym(phrase));
        }
예제 #3
0
        public void NonAcronymAllCapsWord()
        {
            const string phrase   = "GNU Image Manipulation Program";
            const string expected = "GIMP";

            Assert.Equal(expected, Tasks.Acronym(phrase));
        }
예제 #4
0
        public void Basic()
        {
            const string phrase   = "Portable Network Graphics";
            const string expected = "PNG";

            Assert.Equal(expected, Tasks.Acronym(phrase));
        }