コード例 #1
0
        public void CharacterInputTest9()
        {
            var  conversionWebSite = new NumericConverter.Converter();
            bool chars             = conversionWebSite.ForbiddenCharacters("123$", 15.25);

            Assert.IsFalse(chars);
        }
コード例 #2
0
        public void CharacterInputTest2()
        {
            var  NumericConverter = new NumericConverter.Converter();
            bool chars            = NumericConverter.ForbiddenCharacters("h4sd55s2", 15.25);

            Assert.IsFalse(chars);
        }
コード例 #3
0
        public void CharacterInputTest15()
        {
            var  conversionWebSite = new NumericConverter.Converter();
            bool chars             = conversionWebSite.ForbiddenCharacters("6947.", 15.25);

            Assert.IsTrue(chars);
        }
コード例 #4
0
        public void CharacterInputTest10()
        {
            var  conversionWebSite = new NumericConverter.Converter();
            bool chars             = conversionWebSite.ForbiddenCharacters("550^.10", 15.25);

            Assert.AreEqual(chars, false);
        }
コード例 #5
0
        public void CharacterInputTest1()
        {
            // the method second contraint is not tested
            var  NumericConverter = new NumericConverter.Converter();
            bool chars            = NumericConverter.ForbiddenCharacters("hello", 15.25);

            Assert.IsFalse(chars);
        }