public bool Equals(SetVerification obj) { if (ReferenceEquals(null, obj)) { return(false); } if (ReferenceEquals(this, obj)) { return(true); } if (!Equals(obj.Label, Label)) { return(false); } if (!Equals(obj.LeafName, LeafName)) { return(false); } if (Cells.Count != obj.Cells.Count) { return(false); } for (int i = 0; i < Cells.Count; i++) { if (!Cells[i].Equals(obj.Cells[i])) { return(false); } } return(true); }
public bool Equals(SetVerification obj) { if (ReferenceEquals(null, obj)) return false; if (ReferenceEquals(this, obj)) return true; if (!Equals(obj.Label, Label)) return false; if (!Equals(obj.LeafName, LeafName)) return false; if (Cells.Count != obj.Cells.Count) return false; for (int i = 0; i < Cells.Count; i++) { if (!Cells[i].Equals(obj.Cells[i])) return false; } return true; }
public void WriteSetVerificationResults(SetVerification verification, ITestContext context) { if (verification.Ordered) { _headerRow.InsertFirst(new HtmlTag("th").Text("Order")); } var results = context.ResultsFor(_step); results.ForExceptionText(writeExceptionText); var rows = results.GetResult<IList<SetRow>>(_table.LeafName) ?? new List<SetRow>(); // TODO -- order this the right way rows.Each(x => { writeVerificationResultRow(x, context, verification.Ordered); }); }
void ITestStream.SetVerification(SetVerification verification, IStep step) { markGrammar(verification.Name); }
void IGrammarVisitor.SetVerification(SetVerification setVerification, IStep step) { writeTable(setVerification); }
void ITestStream.SetVerification(SetVerification verification, IStep step) { var holder = _document.Current.JoinTagAtEnd<TableContainerTag>(); var tag = new StoryTellerTableTag(verification, step); tag.WriteSetVerificationResults(verification, _context); holder.Add(verification.Label, tag); }
void ITestStream.SetVerification(SetVerification verification, IStep step) { var tag = new StoryTellerTableTag(verification, step); tag.WriteSetVerificationResults(verification, _context); _document.Add(tag); }
public void SetVerification(SetVerification verification, IStep step) { withNewLeaf(step, Icon.SetVerification, node => { node.AddText(verification.Label); addRearrangeCommands(node); }); }
void IGrammarVisitor.SetVerification(SetVerification setVerification, IStep step) { _link.Label(setVerification.Label); }
void IGrammarVisitor.SetVerification(SetVerification setVerification, IStep step) { add(setVerification.Name, setVerification.Label, Icon.SetVerification); }
public void SetUp() { var runner = new TestRunner(x => { x.AddFixture<VerificationFixture>(); }); FixtureLibrary library = runner.Library; verification = library.FixtureFor("Verification").GrammarFor("theStates").ShouldBeOfType<SetVerification>(); }
protected override void theContextIs() { step = new Step().With("x", 1).With("y", 2); treeBuilder.StartTest(theTest); section = new Section("Math"); treeBuilder.StartTest(theTest); treeBuilder.StartSection(section, new FixtureGraph("Math")); set = new SetVerification("the label of this grammar", "leaf1"); treeBuilder.SetVerification(set, step); }
void IGrammarVisitor.SetVerification(SetVerification setVerification, IStep step) { _stream.SetVerification(setVerification, step); }
public void when_writing_the_grammar_structure() { SetVerificationGrammar grammar = Fixture.VerifySetOf(c => new ValidationError[0]) .Titled("the title") .LeafNameIs("group1") .MatchOn(x => x.Field, x => x.Message); var setVerification = grammar.ToStructure(null).ShouldBeOfType<SetVerification>(); var expected = new SetVerification("the title", "group1", Cell.For<string>("Field"), Cell.For<string>("Message")); setVerification.ShouldEqual(expected); }
public void SetUp() { FixtureLibrary library = FixtureGraph.Library; verification = library.FixtureFor("Verification").GrammarFor("theStates").ShouldBeOfType<SetVerification>(); }