コード例 #1
0
        public void CrossRefrenceFuntionality_Pair_TEST()
        {
            CrossRefrenceFuntionality _RefTEST = new CrossRefrenceFuntionality();
            string testString = "hakket okse";
            bool   fatalError;

            string Expected = "hakket okse";
            string result   = _RefTEST.CheckForValidIndgredients(testString, out fatalError);

            Assert.AreEqual(Expected, result);
        }
コード例 #2
0
        public void CrossRefrenceFuntionality_FatalError_TEST()
        {
            CrossRefrenceFuntionality _RefTEST = new CrossRefrenceFuntionality();
            string testString = "ThisIsMadeToFail";
            bool   fatalError;

            _RefTEST.CheckForValidIndgredients(testString, out fatalError);

            bool Expected = true;
            bool result   = fatalError;

            Assert.AreEqual(Expected, result);
        }