Пример #1
0
 public void RunJustMoreCoolStuff() {
    var fixture = new TestFixture(typeof(Foo));
    var criterion = new RegexCriterion(@".*\.MoreCool.*");
    fixture.Execute(new TestRun(criterion), new NullListener());
    Assert.Equals("#Foo.MoreCoolStuff", Foo._messages);
 }
Пример #2
0
 public void IncludesTestWithEmptyPattern() {
    var fixture = new TestFixture(typeof(Foo));
    var criterion = new RegexCriterion("");
    fixture.Execute(new TestRun(criterion), new NullListener());
    Assert.Equals("#Foo.Cool#Foo.CoolStuff#Foo.MoreCoolStuff", Foo._messages);
 }