public void TestSuccess1()
 {
     string input = "This is a statement, and so is this.";
     string Result = "this-2\nis-2\na-1\nstatement-1\nand-1\nso-1";
     BusinessLogic objBusinessLogic = new BusinessLogic();
     string Output = objBusinessLogic.GetDistinctWordInASentence(input);
     Assert.AreEqual(Result, Output);
 }
 public void TestSuccess2()
 {
     string input = "Hello, This is a test application to test distinct word in a sentence. :)";
     string Result = "hello-1\nthis-1\nis-1\na-2\ntest-2\napplication-1\nto-1\ndistinct-1\nword-1\nin-1\nsentence-1";
     BusinessLogic objBusinessLogic = new BusinessLogic();
     string Output = objBusinessLogic.GetDistinctWordInASentence(input);
     Assert.AreEqual(Result, Output);
 }
 public void TestFail2()
 {
     string input = "This is a statement, and so is this.";
     string Result = "1";
     BusinessLogic objBusinessLogic = new BusinessLogic();
     string Output = objBusinessLogic.GetDistinctWordInASentence(input);
     Assert.AreEqual(Result, Output);
 }
 static void Main(string[] args)
 {
     string Sentence = string.Empty;
     Console.Write("Please enter sentence: ");
     Sentence = Console.ReadLine();
     BusinessLogic objBusinessLogic = new BusinessLogic();
     Console.WriteLine(objBusinessLogic.GetDistinctWordInASentence(Sentence));
     Console.ReadLine();
 }