public void Get_should_throw_exception_when_file_not_found()
        {
            // given
            var caseFileReader = new TestCaseFileReader(new TestCaseDirectory());

            // when
            caseFileReader.Get("filenotexist.xml");
        }
示例#2
0
        public void Get_should_throw_exception_when_file_not_found()
        {
            // given
            var caseFileReader = new TestCaseFileReader(new TestCaseDirectory());

            // when
            caseFileReader.Get("filenotexist.xml");
        }
        public void Get_file_should_not_be_empty_when_file_found()
        {
            // given
            var mock = new Mock<ITestCaseDirectory>();

            mock.Setup(x => x.GetFullPath("roadkill-login.xml")).Returns(GetFilePath("roadkill-login.xml"));

            var caseFileReader = new TestCaseFileReader(mock.Object);

            // when
            var textReader = caseFileReader.Get("roadkill-login.xml");

            // then
            Assert.NotNull(textReader);
        }
示例#4
0
        public void Get_file_should_not_be_empty_when_file_found()
        {
            // given
            var mock = new Mock <ITestCaseDirectory>();

            mock.Setup(x => x.GetFullPath("roadkill-login.xml")).Returns(GetFilePath("roadkill-login.xml"));

            var caseFileReader = new TestCaseFileReader(mock.Object);

            // when
            var textReader = caseFileReader.Get("roadkill-login.xml");

            // then
            Assert.NotNull(textReader);
        }