public void Verify_NJasmine_implementation(IFixtureResult fixtureResult) { fixtureResult.succeeds(); fixtureResult.hasSuite("given an outer block").thatsInconclusive().thatHasNoResults(); fixtureResult.hasSuite("when ignore is set after a test the suite is inconclusive").thatSucceeds() .hasTest("then the earlier test runs", t => t.thatSucceeds()) .doesNotHaveTestContaining("skipped"); }
public void Verify_NJasmine_implementation(IFixtureResult fixtureResult) { fixtureResult.succeeds(); var suite = fixtureResult.hasSuite("when using category Foo then Bar").withCategories(); suite.hasTest("then tests have Foo", t => t.withCategories("Foo")); suite.hasTest("then tests have Foo", t => t.withCategories("Foo")); suite.hasTest("then tests have For and Bar", t => t.withCategories("Foo", "Bar")); var nestedSuite = suite.hasSuite("when in a nested block and using a category").withCategories("Foo", "Bar"); nestedSuite.hasTest("then the test only has category Baz", t => t.withCategories("Baz")); }
public void Verify_NJasmine_implementation(IFixtureResult fixtureResult) { fixtureResult.hasSuite("the browser is firefox").hasTest("it supports search", t => { }); fixtureResult.hasSuite("the browser is internet explorer").hasTest("it supports search", t => { }); fixtureResult.hasSuite("the browser is chrome").hasTest("it supports search", t => { }); }