示例#1
0
        public void ACell_CanBe_FlaggedAsPass()
        {
            var cell = new TableCell("this");

            cell.Pass();

            Assert.That(cell.ToString(), Is.EqualTo("pass"));
        }
示例#2
0
        public void ACell_CanBe_FlaggedAsPass_WithAMessage()
        {
            var cell = new TableCell("this");

            cell.Pass("Any Message");

            Assert.That(cell.ToString(), Is.EqualTo("pass: Any Message"));
        }
示例#3
0
        public void ACell_CanBe_FlaggedAsError_WithAMessage()
        {
            var cell = new TableCell("this");

            cell.Error("Any Message");

            Assert.That(cell.ToString(), Is.EqualTo("error: Any Message"));
        }
示例#4
0
        public void ACell_CanBe_FlaggedAsIgnore_WithAMessage()
        {
            var cell = new TableCell("this");

            cell.Ignore("Any Message");

            Assert.That(cell.ToString(), Is.EqualTo("ignore: Any Message"));
        }
示例#5
0
        public void ACell_CanBe_ExplicitelyFlaggedAsUnchanged_BySettingItsContentsToEmpty()
        {
            var cell = new TableCell("this");

            cell.NoChange();

            Assert.That(cell.ToString(), Is.EqualTo(string.Empty));
        }
示例#6
0
        public void ACell_CanBe_FlaggedAsReport_WithAMessage()
        {
            var cell = new TableCell("this");

            cell.Report("Any Message");

            Assert.That(cell.ToString(), Is.EqualTo("report: Any Message"));
        }
示例#7
0
        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"));
        }
示例#8
0
        public void When_ACellIsCheckedAgainst_AMatchingValue_CellIsFlaggedAs_Pass()
        {
            var cell = new TableCell("this");

            cell.CompareWith("this");

            Assert.That(cell.ToString(), Is.EqualTo("pass"));
        }
示例#9
0
        public void ACell_CanBe_OverriddenWith_ANewValue()
        {
            var cell = new TableCell("this");

            cell.SetText("that");

            Assert.That(cell.ToString(), Is.EqualTo("that"));
        }
示例#10
0
        public void ACell_CanBe_ImplicitelyFlaggedAsUnchanged_ByDoingNothignToIt()
        {
            var cell = new TableCell("this");

            Assert.That(cell.ToString(), Is.EqualTo("this"));
        }