开发者

EnqueueCallback in VB.net

开发者 https://www.devze.com 2022-12-10 02:52 出处:网络
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/UnitTestingAsynchronousSilver

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))
0

精彩评论

暂无评论...
验证码 换一张
取 消