Beispiel #1
0
        public void Base_CaseSensitiveTest()
        {
            BasePhonetics bp = new BasePhonetics("Dave Poole", false);

            bp.Iterate();
            Assert.AreEqual("DAVE POOLE", bp.ReadOutput());
            Assert.AreNotEqual("Dave Poole", bp.ReadOutput());
            bp.Dispose();
        }
Beispiel #2
0
        public void NullStringTest()
        {
            BasePhonetics bp = new BasePhonetics(null, false);

            bp.Iterate();
            Assert.AreEqual("", bp.ReadOutput());
            bp.Dispose();
        }
Beispiel #3
0
        public void Base_InputEqualOutputTest()
        {
            BasePhonetics bp = new BasePhonetics("Dave Poole");

            bp.Iterate();
            Assert.AreEqual("DAVE POOLE", bp.ReadOutput());
            bp.Dispose();
        }