public void ACell_CanBe_FlaggedAsPass() { var cell = new TableCell("this"); cell.Pass(); Assert.That(cell.ToString(), Is.EqualTo("pass")); }
public void ACell_CanBe_FlaggedAsPass_WithAMessage() { var cell = new TableCell("this"); cell.Pass("Any Message"); Assert.That(cell.ToString(), Is.EqualTo("pass: Any Message")); }
public void ACell_CanBe_FlaggedAsError_WithAMessage() { var cell = new TableCell("this"); cell.Error("Any Message"); Assert.That(cell.ToString(), Is.EqualTo("error: Any Message")); }
public void ACell_CanBe_FlaggedAsIgnore_WithAMessage() { var cell = new TableCell("this"); cell.Ignore("Any Message"); Assert.That(cell.ToString(), Is.EqualTo("ignore: Any Message")); }
public void ACell_CanBe_ExplicitelyFlaggedAsUnchanged_BySettingItsContentsToEmpty() { var cell = new TableCell("this"); cell.NoChange(); Assert.That(cell.ToString(), Is.EqualTo(string.Empty)); }
public void ACell_CanBe_FlaggedAsReport_WithAMessage() { var cell = new TableCell("this"); cell.Report("Any Message"); Assert.That(cell.ToString(), Is.EqualTo("report: Any Message")); }
public void When_ACellIsCheckedAgainst_ANonMatchingValue_CellIsFlaggedAs_Fail() { var cell = new TableCell("that"); cell.CompareWith("this"); Assert.That(cell.ToString(), Is.EqualTo("fail: Expected:that Actual:this")); }
public void When_ACellIsCheckedAgainst_AMatchingValue_CellIsFlaggedAs_Pass() { var cell = new TableCell("this"); cell.CompareWith("this"); Assert.That(cell.ToString(), Is.EqualTo("pass")); }
public void ACell_CanBe_OverriddenWith_ANewValue() { var cell = new TableCell("this"); cell.SetText("that"); Assert.That(cell.ToString(), Is.EqualTo("that")); }
public void ACell_CanBe_ImplicitelyFlaggedAsUnchanged_ByDoingNothignToIt() { var cell = new TableCell("this"); Assert.That(cell.ToString(), Is.EqualTo("this")); }