Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Force IOException in Linux while reading a file #1

Open
eduherminio opened this issue Feb 13, 2018 · 0 comments
Open

Force IOException in Linux while reading a file #1

eduherminio opened this issue Feb 13, 2018 · 0 comments
Labels

Comments

@eduherminio
Copy link
Owner

The following test needs to be skipped since it fails in Travis CI env (no exception is thrown).

        [Fact(Skip ="No exception is thrown in Linux (CI env)")]
        void IOException()
        {
            string fileName = "Any.txt";
            StreamWriter writer = new StreamWriter(fileName);
            using (writer)
            {
                Assert.Throws<IOException>(() => FileReader.Parse(fileName));
            }
        }

If no way of forcing IOException in Linux is found, test would better be deleted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant