public void TestStart() { table = BuildTable("ActionFixture"); var fixture = new ActionFixture { Processor = new Service.Service(configuration) }; fixture.DoTable(table); Assert.AreEqual(0, fixture.TestStatus.Counts.GetCount(TestStatus.Exception), table.ToString()); Assert.IsNotNull(fixture.GetTargetObject()); }
public void TestCheckOnTimedActionFixture() { table = BuildTable("TimedActionFixture"); var fixture = new ActionFixture{ Processor = new Service.Service(configuration) }; fixture.DoTable(table); Assert.AreEqual(0, fixture.TestStatus.Counts.GetCount(TestStatus.Exception), table.ToString()); var countFixture = (CountFixture)fixture.GetTargetObject(); int actualCount = countFixture.Counter; Assert.AreEqual(6, actualCount); Assert.AreEqual(4, countFixture.TestStatus.Counts.GetCount(TestStatus.Right)); }
public void TestCheck() { table = new Parse(BuildTable("ActionFixture")); var fixture = new ActionFixture{ Processor = new Service.Service(configuration) }; fixture.DoTable(table); Assert.AreEqual(0, fixture.TestStatus.Counts.GetCount(CellAttributes.ExceptionStatus), table.ToString()); var countFixture = (CountFixture)fixture.GetTargetObject(); int actualCount = countFixture.Counter; Assert.AreEqual(6, actualCount); Assert.AreEqual(4, fixture.TestStatus.Counts.GetCount(CellAttributes.RightStatus)); }
public void TestCheckOnTimedActionFixture() { table = BuildTable("TimedActionFixture"); var fixture = new ActionFixture { Processor = new Service.Service(configuration) }; fixture.DoTable(table); Assert.AreEqual(0, fixture.TestStatus.Counts.GetCount(TestStatus.Exception), table.ToString()); var countFixture = (CountFixture)fixture.GetTargetObject(); int actualCount = countFixture.Counter; Assert.AreEqual(6, actualCount); Assert.AreEqual(4, countFixture.TestStatus.Counts.GetCount(TestStatus.Right)); }
public string gray(string text) { return(ActionFixture.Gray(HtmlTools.toHtml(text))); }
public string label(string text) { return(ActionFixture.Label(text)); }