Skip to content

Instantly share code, notes, and snippets.

@stevehorn
Created August 10, 2010 16:48
Show Gist options
  • Save stevehorn/517577 to your computer and use it in GitHub Desktop.
Save stevehorn/517577 to your computer and use it in GitHub Desktop.
Public Class CrazyVBTypingTests
<Test()>
Public Sub Test_crazy_crap()
Dim anObject As New Object
anObject = New DoStuff
'This compiles, WTH?
Dim someInteger As Integer = anObject.GiveMeAnInteger()
someInteger.ShouldEqual(1)
End Sub
End Class
Public Class DoStuff
Public Function GiveMeAnInteger() As Integer
Return 1
End Function
End Class
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment