Skip to content

Instantly share code, notes, and snippets.

@stevehorn
Created August 10, 2010 16:49
Show Gist options
  • Save stevehorn/517579 to your computer and use it in GitHub Desktop.
Save stevehorn/517579 to your computer and use it in GitHub Desktop.
public class Compare_To_VB_Object_Weirdness
{
[Test]
public void Something()
{
var someObject = new Object();
someObject = new DoStuff();
//This does not compile, as expected
int result = someObject.GiveMeAnInteger();
result.ShouldEqual(1);
}
}
public class DoStuff
{
public int GiveMeAnInteger()
{
return 1;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment