Created
July 26, 2013 09:33
-
-
Save huseyint/6087575 to your computer and use it in GitHub Desktop.
Revisions
-
huseyint created this gist
Jul 26, 2013 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,8 @@ // headers is a Dictionary<string, string> Assert.AreEqual(1, headers.Count); Assert.AreEqual("bar", headers["foo"]); // Do I need both of these? Only first? Only second? // Only 1st: What if the item is different than what I expected? // Only 2nd: If dictionary is empty, this line will throw an exception before assertion is evaluated, is this OK? // Both: Isn't this against "one assert per unit test" rule?