<link rel="stylesheet" type="text/css" href="http://alexgorbatchev.com/pub/sh/current/styles/shCore.css" /><link rel="stylesheet" type="text/css" href="http://alexgorbatchev.com/pub/sh/current/styles/shThemeDefault.css" /><script src="http://alexgorbatchev.com/pub/sh/current/scripts/shCore.js" type="text/javascript"> <script src='http://alexgorbatchev.com/pub/sh/current/scripts/shAutoloader.js' type='text/javascript'/> <script src='http://alexgorbatchev.com/pub/sh/current/scripts/shBrushXml.js' type='text/javascript'/> <script src='http://alexgorbatchev.com/pub/sh/current/scripts/shBrushJScript.js' type='text/javascript'/> <script src='http://alexgorbatchev.com/pub/sh/current/scripts/shBrushCss.js' type='text/javascript'/> <script src='http://alexgorbatchev.com/pub/sh/current/scripts/shBrushCSharp.js' type='text/javascript'/> <script type='text/javascript'> SyntaxHighlighter.config.bloggerMode = true; SyntaxHighlighter.config.clipboardSwf ='http://alexgorbatchev.com/pub/sh/current/scripts/clipboard.swf'; SyntaxHighlighter.all() </script>

 

<pre class="brush: Css">public class SchoolbusFixture : ExperimentOn<Schoolbus> { [Test] public void CanTransportKids() { Expecting(ThatTheCollection(x => x.Tires).Has.CountOf(Schoolbus.RequiredFunctioningTires).Always(), ThatTheCollection(x => x.Tires).Has.No.ItemsSatisfying(y => y.Punctured) // .AndLater.Has.AtLeast(2).ItemsSatisfying(y => y.Punctured), That(x => x.CanTransportKids()).WillChangeTo(false)); Try(x => x.Tires.First().Punctured = true); } protected override Schoolbus TestSubjectFactory() { return new Schoolbus(); } }

</ pre>

Last edited Feb 11, 2011 at 11:33 PM by MarkKnell, version 2

Comments

No comments yet.