tag:blogger.com,1999:blog-9648422.post3205734755241185932..comments2023-10-20T16:13:53.256+03:00Comments on Becoming Agile: Why BDD? Can it help me?Dan Buneahttp://www.blogger.com/profile/02360135573826474086noreply@blogger.comBlogger1125tag:blogger.com,1999:blog-9648422.post-58520582649515207812009-05-06T14:09:00.000+03:002009-05-06T14:09:00.000+03:00The code for the string extensions:
public st...The code for the string extensions:<br /><br /> public static class StingBDDExtentions<br /> {<br /> public delegate void GivenDelegate();<br /> public delegate void WhenDelegate();<br /> public delegate void AssertDelegate();<br /><br /> public static void Given(this string comment, GivenDelegate code)<br /> {<br /> Console.WriteLine("GIVEN:{0}",comment);<br /> code.Invoke();<br /> }<br /> public static void When(this string comment, WhenDelegate code)<br /> {<br /> Console.WriteLine("WHEN:{0}", comment);<br /> code.Invoke();<br /> }<br /> public static void Assert(this string comment, AssertDelegate code)<br /> {<br /> Console.WriteLine("ASSERT:{0}", comment);<br /> code.Invoke();<br /> }<br /> }Dan Buneahttps://www.blogger.com/profile/02360135573826474086noreply@blogger.com