Exemple #1
0
        public void Stub_Extension_Manager_Returns_True()
        {
            //Arrange
            StubExtensionManager stub    = new StubExtensionManager();
            FileChecker          checker = new FileChecker(stub);

            //Act
            bool IsTrueFile = checker.CheckFile("myFile.exe");

            //Assert
            Assert.IsTrue(IsTrueFile);
            Assert.AreEqual(true, IsTrueFile);
        }
Exemple #2
0
        public void TestMethod1()
        {
            var res = FileChecker.CheckCourse("31");

            Assert.AreEqual(res, true);
        }
Exemple #3
0
        public void TestMethod5()
        {
            var res = FileChecker.CheckDocument("_34./cx");

            Assert.AreEqual(res, false);
        }
Exemple #4
0
        public void TestMethod6()
        {
            var res = FileChecker.CheckGroup("343.34");

            Assert.AreEqual(res, false);
        }
Exemple #5
0
        public void TestMethod3()
        {
            var res = FileChecker.CheckLesson("Hello");

            Assert.AreEqual(res, true);
        }
Exemple #6
0
        public void TestMethod4()
        {
            var res = FileChecker.CheckLastName("");

            Assert.AreEqual(res, false);
        }
Exemple #7
0
        public void TestMethod1()
        {
            var res = FileChecker.CheckID("13");

            Assert.AreEqual(res, false);
        }
Exemple #8
0
        public void TestMethod2()
        {
            var res = FileChecker.CheckMark("6");

            Assert.AreEqual(res, false);
        }
Exemple #9
0
        public void TestMethod11()
        {
            var res = FileChecker.CheckCommision("343.34");

            Assert.AreEqual(res, false);
        }
Exemple #10
0
        public void TestMethod10()
        {
            var res = FileChecker.CheckSalary("-3444");

            Assert.AreEqual(res, false);
        }
Exemple #11
0
        public void TestMethod6()
        {
            var res = FileChecker.CheckHireDate("12");

            Assert.AreEqual(res, false);
        }
Exemple #12
0
        public void TestMethod5()
        {
            var res = FileChecker.CheckHireDate("01.01.4999");

            Assert.AreEqual(res, false);
        }
Exemple #13
0
        public void TestMethod4()
        {
            var res = FileChecker.CheckDepartment("ert456");

            Assert.AreEqual(res, false);
        }