Skip to content

Instantly share code, notes, and snippets.

@indare
Created March 8, 2012 05:41
Show Gist options
  • Save indare/1998949 to your computer and use it in GitHub Desktop.
Save indare/1998949 to your computer and use it in GitHub Desktop.
VB2008でプロパティと遊ぶ
Public Class HogeHoge
Public Property Hoge() as integer
Get
Return Hoge
End Get
Set(ByVal value as integer)
Hoge = value
End Set
End Property
End Class
<TestFixture()> _
Public Class HogeHogeTest
<Test()> _
Public Sub 見せてもらおう自動実装とやらを()
Dim fuga as New HogeHoge()
fuga.Hoge = 100
Assert.AreEqual(fuga.Hoge,100)
End Sub
End Class
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment