Пример #1
0
        public XmlFixture GetFixture(string fixtureName)
        {
            XmlFixture tc = null;

            this.fixtures.TryGetValue(fixtureName, out tc);
            return(tc);
        }
Пример #2
0
 public XmlFixture GetFixture(XmlFixture fixture)
 {
     if (fixture == null)
     {
         throw new ArgumentNullException("fixture");
     }
     return(GetFixture(fixture.Name));
 }
        public XmlTestCase GetTestCase(XmlFixture fixture, XmlTestCase testCase)
        {
            if (fixture == null)
                throw new ArgumentNullException("fixture");
            if (testCase == null)
                throw new ArgumentNullException("testCase");

            return GetTestCase(fixture.Name, testCase.Name);
        }
Пример #4
0
        public XmlTestCase GetTestCase(XmlFixture fixture, XmlTestCase testCase)
        {
            if (fixture == null)
            {
                throw new ArgumentNullException("fixture");
            }
            if (testCase == null)
            {
                throw new ArgumentNullException("testCase");
            }

            return(GetTestCase(fixture.Name, testCase.Name));
        }
 public XmlFixture GetFixture(XmlFixture fixture)
 {
     if (fixture == null)
         throw new ArgumentNullException("fixture");
     return GetFixture(fixture.Name);
 }
Пример #6
0
 public string GetFullName(XmlFixture fixture)
 {
     return(GetTestCaseFullName(fixture.Name, this.Name));
 }
        public void AfterFixture(IFixture fixture)
        {
			if (this.currentFixture != null)
			{
				this.currentFixture.UpdateCounter();
				this.currentFixture = null;
			}
        }
        public void BeforeFixture(IFixture fixture, int testCaseCount)
        {
            this.currentFixture = new XmlFixture(fixture, testCaseCount, 
                GetCategories(fixture), this.currentTestAssembly.Fixtures.Count);
	        this.currentTestAssembly.Fixtures.Add(this.currentFixture);
        }
 public string GetFullName(XmlFixture fixture)
 {
     return GetTestCaseFullName(fixture.Name, this.Name);
 }