I've used the Dialog(DialogButton.OK) before but I have a question on how to use the DialogAttribute with the IDialog customDialog constructor.
So my question is since attributes require constant expressions for their arguments how does the DialogAttribute work for "Custom" dialog handling?
[TestMethod]
[Dialog(
new
ConfirmDialog(Manager.Current.ActiveBrowser, DialogButton.OK))]
public
void
TestCase()
{
// This gives me an error. "An attribute argument must be a constant expression, typeof expression or array creation expression of an attribute parameter type
}
So my question is since attributes require constant expressions for their arguments how does the DialogAttribute work for "Custom" dialog handling?