public static void Main()
string text = @"""Hurry up, boy!"" shouted Uncle Vernon from the kitchen. ""What are you
doing, checking for letter bombs?"" He chuckled at his own joke.
Harry went back to the kitchen, still staring at his letter. He handed
Uncle Vernon the bill and the postcard, sat down, and slowly began to
open the yellow envelope.
Uncle Vernon ripped open the bill, snorted in disgust, and flipped over
""Marge's ill,"" he informed Aunt Petunia. ""Ate a funny whelk. --.""
""Dad!"" said Dudley suddenly. ""Dad, Harry's got something!""
Harry was on the point of unfolding his letter, which was written on the
same heavy parchment as the envelope, when it was jerked sharply out of
his hand by Uncle Vernon.
""That's mine!"" said Harry, trying to snatch it back.
""Who'd be writing to you?"" sneered Uncle Vernon, shaking the letter open
with one hand and glancing at it. His face went from red to green faster
than a set of traffic lights. And it didn't stop there. Within seconds
it was the grayish white of old porridge.";
bool textMaSmysl = !string.IsNullOrWhiteSpace(text);
Console.WriteLine("Text dava smysl - ".PadRight(padding) + (textMaSmysl == true));
delkaTextu = text.Length;
Console.WriteLine("Delka text je spravna - ".PadRight(padding) + (delkaTextu == 1001));
string oddelovac = new string('-', 20);
Console.WriteLine("Oddelovac ma 20 pomlcek - ".PadRight(padding) + (oddelovac == "--------------------"));
bool jeStejne = jmeno1.Equals(jmeno2, StringComparison.OrdinalIgnoreCase);
Console.WriteLine("Obe promenne obsahuji stejne jmeno - ".PadRight(padding) + jeStejne);
bool piseSeOMarge = text.Contains("Marge");
Console.WriteLine("V textu se zminuje Harryho 'teticka' - ".PadRight(padding) + (piseSeOMarge == true));
int posledniZnak = text.Length;
char posledniZnakChar = text[posledniZnak - 1];
bool jeSpravneUkoncen = (posledniZnakChar == '.');
Console.WriteLine("Text je spravne ukoncen interpunkci - ".PadRight(padding) + (jeSpravneUkoncen == true));
if (string.Compare(blabol1,blabol2, StringComparison.OrdinalIgnoreCase) < 0)
if (string.Compare(blabol3,prvni,StringComparison.OrdinalIgnoreCase) < 0)
Console.WriteLine("Prvni v abecede je blabol3 - ".PadRight(padding) + (prvni == blabol3));
string[] vetyPoVykricnik = text.Split('!');
bool jeJinaVetaTazaci = vetyPoVykricnik[0].Contains("?");
bool jeJinaVetaOznamovaci = vetyPoVykricnik[0].Contains(".");
string opacnaVetaPoVykricnik = string.Empty;
if (jeJinaVetaOznamovaci)
for (int i = vetyPoVykricnik.Length - 1; i >= 0; i--)
opacnaVetaPoVykricnik += vetyPoVykricnik[i];
string[] opacnaVetaPoVykricnikBezOznamovacich = opacnaVetaPoVykricnik.Split('.');
Console.WriteLine(opacnaVetaPoVykricnikBezOznamovacich);
for (int i = opacnaVetaPoVykricnikBezOznamovacich.Length-1; i >= 0; i--)
veta += opacnaVetaPoVykricnikBezOznamovacich[i];
else if (jeJinaVetaTazaci)
for (int i = vetyPoVykricnik.Length - 1; i >= 0; i--)
opacnaVetaPoVykricnik += vetyPoVykricnik[i];
string[] opacnaVetaPoVykricnikBezTazacich = opacnaVetaPoVykricnik.Split('.');
Console.WriteLine(opacnaVetaPoVykricnikBezTazacich);
for (int i = opacnaVetaPoVykricnikBezTazacich.Length - 1; i >= 0; i--)
veta += opacnaVetaPoVykricnikBezTazacich[i];
veta = vetyPoVykricnik[0].Trim('"');
Console.WriteLine("Prvni rozkazovaci veta je 'Hurry up, boy' - ".PadRight(padding) + (veta == "Hurry up, boy"));
string[] slovaTextu = text.Split(' ');
for (int i = 0; i < slovaTextu.Length - 1; i++)
if ((slovaTextu[i] == "and")||(slovaTextu[i] == "And"))
Console.WriteLine(pocetAnd);
Console.WriteLine("Text obsahuje slovo 'and' celkem 5x' - ".PadRight(padding) + (pocetAnd == 5));