Hi there.
I have the following code snippet:
Controls.Add(New LiteralControl("<div id=""Links-Area"">"))
In my unit test, how can I do the following:
Using AssertCalls.HappenedWithExactArguments()
fakeSeeAlso.Controls.Add(New LiteralControl("<div id=""Links-Area"">"))
End Using
The above code does compile, but when I run the test, I get this error:
*** Assign Parameter Error, for System.Web.UI.LiteralControl..ctor.
Is it possible to assert on creating new objects via the Controls.Add() call?
Cheers.
Jas.