You may need to click the build button (black triangle in upper-left) to see your new tests. If you can't see the "Unit Test" pane (or pad as they call it on the Mac), open it now: View / Pads / Unit Tests Go ahead and create a regular class and add a couple tests against it. Like I said, there's already a "Test.cs" file ready to go, with the proper NUnit attributes and everything. NET / NUnit Library Project Create a class and some tests How convenient is that? Create a new project The VS4Mac team actually added a project type that includes the NUnit package and a test file out of the box. The easiest method is to just create a new "NUnit Library Project". testing! Method 1: An NUnit Library Project I paired up with someone else who knew C#, so it was a good opportunity to try doing the kata in Visual Studio for Mac!Īlthough I've kicked the tires on VS4Mac a bit, one of the things I hadn't tried testing out was, well. Basically, you arrange 9 unique numbers in a 3x3 grid such that they add up to the same number horizontally, vertically and diagonally. Last month at the AkronCodeClub they selected the magic square kata, which was a new one for me.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |