Created
April 11, 2013 11:07
-
-
Save Turtlator/5362526 to your computer and use it in GitHub Desktop.
Testing genius
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 characters
| <TestMethod()> | |
| Public Sub TestPushTooMany() | |
| Dim stack As Stack(Of Double) = New Stack(Of Double)(1) | |
| Try | |
| stack.Push(123.456) | |
| stack.Push(89.123) | |
| Assert.Fail("Should not reach this point") | |
| Catch ex As Exception | |
| End Try | |
| End Sub |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment