How to create unit test for actualHeight in Silverlight 4?
Posted
by eflles
on Stack Overflow
See other posts from Stack Overflow
or by eflles
Published on 2010-04-22T11:20:24Z
Indexed on
2010/04/22
11:23 UTC
Read the original article
Hit count: 274
How can I write a unit test to test the actualWidth property to a userControl in Silverligh 4?
I hoped that this method would pass, but it fails.
I am using the Silverlight ToolKit april 2010, and VS 2010.
<TestMethod()> _
Public Sub TestAcrtualWidth()
Me.MyUserControl.Width = 100
Me.MyUserControl.UpdateLayout()
Assert.IsTrue(Me.MyUserControl.ActualWidth > 0)
End Sub
© Stack Overflow or respective owner