Exemplo n.º 1
0
        public void Metaphone_WithString_ReturnsMetaphoneString()
        {
            var valueToTest = "This is a test";
            var expected    = "0SSTST";
            var actual      = MetaphoneComparator.Metaphone(valueToTest);

            Console.WriteLine(String.Format("Metaphone result = {0}", actual));
            Assert.IsInstanceOf <string>(actual);
            Assert.AreEqual(expected, actual);
        }
Exemplo n.º 2
0
 public void Cleanup()
 {
     // TearDown code goes here...
     _comparator = null;
 }
Exemplo n.º 3
0
 public void Init()
 {
     // Setup code goes here...
     _comparator = new MetaphoneComparator();
 }