Пример #1
0
 public void TestStart()
 {
     table = BuildTable("ActionFixture");
     var fixture = new ActionFixture { Processor = new Service.Service(memory) };
     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
 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 void TestStart()
 {
     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());
     Assert.IsNotNull(fixture.GetTargetObject());
 }