EnqueueCallback in VB.net
I would like to perform a unit test in Silverlight, with VB.net.
I have read an example of how to perform an asynchronous test (http://j开发者_运维知识库onas.follesoe.no/UnitTestingAsynchronousSilverlightCode.aspx), but I do not know how to translate the following from C# to VB.net:
EnqueueCallback(() => Assert.AreEqual(value, expectedValue));
Can somebody help me?
Try this:
EnqueueCallback(Function() Assert.AreEqual(value, expectedValue))
精彩评论