27.07.2013 Views

2 Why We Need Model-Based Testing

2 Why We Need Model-Based Testing

2 Why We Need Model-Based Testing

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Advanced Topics 231<br />

namespace SP<br />

{<br />

[Feature]<br />

class MessageParameters<br />

{<br />

[Action("ResSetup(m,c,_)")]<br />

[Action("ResWork(m,c,_)")]<br />

static void Res([Domain("M")]int m, [Domain("C")]int c){}<br />

static Set M() { return Credits.requests.Keys; }<br />

static Set C()<br />

{<br />

if (Credits.requests.Values.IsEmpty)<br />

return Set.EmptySet;<br />

else{<br />

int maxCredits = Credits.requests.Values.Minimum();<br />

Set res = Set.EmptySet;<br />

for (int c = 0; c

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!