コード例 #1
0
ファイル: ActionFixtureTest.cs プロジェクト: abombss/fitsharp
 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());
 }
コード例 #2
0
        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());
        }
コード例 #3
0
ファイル: ActionFixtureTest.cs プロジェクト: abombss/fitsharp
 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));
 }
コード例 #4
0
 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));
 }
コード例 #5
0
        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));
        }
コード例 #6
0
 public string gray(string text)
 {
     return(ActionFixture.Gray(HtmlTools.toHtml(text)));
 }
コード例 #7
0
 public string label(string text)
 {
     return(ActionFixture.Label(text));
 }