public static void Main(String[] args) { string output = Acronym.Abbreviate("Something - I made up from thin air"); Console.WriteLine(output); Console.ReadKey(); }
public void Basic() { Assert.Equal("PNG", Acronym.Abbreviate("Portable Network Graphics")); }
public void Consecutive_delimiters() { Assert.Equal("SIMUFTA", Acronym.Abbreviate("Something - I made up from thin air")); }
public void Very_long_abbreviation() { Assert.Equal("ROTFLSHTMDCOALM", Acronym.Abbreviate("Rolling On The Floor Laughing So Hard That My Dogs Came Over And Licked Me")); }
public void Punctuation_without_whitespace() { Assert.Equal("CMOS", Acronym.Abbreviate("Complementary metal-oxide semiconductor")); }
public void All_caps_word() { Assert.Equal("GIMP", Acronym.Abbreviate("GNU Image Manipulation Program")); }
public void Punctuation() { Assert.Equal("FIFO", Acronym.Abbreviate("First In, First Out")); }
public void Lowercase_words() { Assert.Equal("ROR", Acronym.Abbreviate("Ruby on Rails")); }
public void Underscore_emphasis() { Assert.Equal("TRNT", Acronym.Abbreviate("The Road _Not_ Taken")); }
public void Hyphenated() { Assert.Equal("CMOS", Acronym.Abbreviate("Complementary metal-oxide semiconductor")); }
public void Apostrophes() { Assert.Equal("HC", Acronym.Abbreviate("Halley's Comet")); }
public void All_caps_words() { Assert.Equal("PHP", Acronym.Abbreviate("PHP: Hypertext Preprocessor")); }
public void NonAcronymAllCapsWord() { Assert.Equal("GIMP", Acronym.Abbreviate("GNU Image Manipulation Program")); }
public void Camelcase() { Assert.Equal("HTML", Acronym.Abbreviate("HyperText Markup Language")); }
public void Empty_string_abbreviated_to_empty_string() { Assert.That(Acronym.Abbreviate(string.Empty), Is.EqualTo(string.Empty)); }
public string Phrase_abbreviated_to_acronym(string phrase) { return(Acronym.Abbreviate(phrase)); }