i'm using xunit framework test following code:
public void openfileintxteditor(string filename) { if (file.exists(filename)) { process.start(filename); } else { throw new filenotfoundexception("file not found"); } }
i'm new xunit , unit testing. idea how write test method appreciated.
please refer link official documentation. in case when run issues, post details here community can figure out.
and in visual studio, have options creating test project or , add class library , use testing.
Comments
Post a Comment