public void TestUniqueStringApproach1() { var instanceStringUnique = new StringUnique(); string currentString = "Edwin Arockiaraj"; bool isStringUnique = instanceStringUnique.IsStringUnique(currentString); Console.WriteLine("Is String {0} Unique: {1}",currentString,isStringUnique); currentString = "Alwyn Jesu"; isStringUnique = instanceStringUnique.IsStringUnique(currentString); Console.WriteLine("Is String {0} Unique: {1}", currentString, isStringUnique); }
public void TestUniqueStringAdvancedApproach() { var instanceStringUnique = new StringUnique(); string currentString = "Edwin Arockiaraj"; bool isStringUnique = instanceStringUnique.IsStringUniqueAdvancedMethod(currentString); Console.WriteLine("Is String {0} Unique: {1}", currentString, isStringUnique); currentString = "Alwyn Jesu"; isStringUnique = instanceStringUnique.IsStringUniqueAdvancedMethod(currentString); Console.WriteLine("Is String {0} Unique: {1}", currentString, isStringUnique); currentString = "abcdefghijklmnopqrstuvwxyz"; isStringUnique = instanceStringUnique.IsStringUniqueAdvancedMethod(currentString); Console.WriteLine("Is String {0} Unique: {1}", currentString, isStringUnique); }