This PR adds unit tests for all methods in the NoteService class in the note-taker project. The tests are implemented using xunit as the testing framework and FakeItEasy for mocking the IFileService dependency.
Summary of Changes
Created a new C# project, note-taker.Tests, for unit tests.
Added a reference to the main note-taker project in the note-taker.Tests project.
Added package references for xunit and FakeItEasy in the note-taker.Tests project.
Created a new test class, NoteServiceTests, in the note-taker.Tests project.
Implemented unit tests for each method in the NoteService class.
Used FakeItEasy to mock the IFileService dependency in the tests.
Verified that the correct methods on IFileService were called with the correct arguments using FakeItEasy's A.CallTo method.
Fixes #37.
To checkout this PR branch, run the following command in your terminal:
git checkout sweep/add-unit-tests
To get Sweep to edit this pull request, leave a comment below or in the code. Leaving a comment in the code will only modify the file but commenting below can change the entire PR.
Description
This PR adds unit tests for all methods in the NoteService class in the note-taker project. The tests are implemented using xunit as the testing framework and FakeItEasy for mocking the IFileService dependency.
Summary of Changes
Fixes #37.
To checkout this PR branch, run the following command in your terminal:
To get Sweep to edit this pull request, leave a comment below or in the code. Leaving a comment in the code will only modify the file but commenting below can change the entire PR.