private static void addTestSuiteToMyTest(NUnit.Framework.Interfaces.ITest testSuite, System.Collections.Generic.List <MyTest> newMyTests) { var index = AltUnityTesterEditor.EditorConfiguration.MyTests.FirstOrDefault(a => a.TestName.Equals(testSuite.FullName)); if (index == null) { if (testSuite.Parent == null) { newMyTests.Add(new MyTest(false, testSuite.FullName, 0, testSuite.IsSuite, testSuite.GetType(), "", testSuite.TestCaseCount, false, null)); } else { newMyTests.Add(new MyTest(false, testSuite.FullName, 0, testSuite.IsSuite, testSuite.GetType(), testSuite.Parent.FullName, testSuite.TestCaseCount, false, null)); } } else { newMyTests.Add(new MyTest(index.Selected, index.TestName, index.Status, index.IsSuite, testSuite.GetType(), index.ParentName, testSuite.TestCaseCount, index.FoldOut, index.TestResultMessage)); } foreach (var test in testSuite.Tests) { addTestSuiteToMyTest(test, newMyTests); } }
public TestMethod( NUnit.Framework.Interfaces.IMethodInfo methodInfo, NUnit.Framework.Interfaces.ITest parentSuite, string className, string methodName) : base(methodInfo, parentSuite as NUnit.Framework.Internal.ParameterizedMethodSuite) { this.ClassName = className; this.MethodName = methodName; }
public void TestStarted(NUnit.Framework.Interfaces.ITest test) { if (!test.IsSuite) { if (CallRunDelegate != null) { CallRunDelegate(test.Name); } } }
private static void CleanupFieldExpressionProperty(NUnit.Framework.Interfaces.ITest test) { var resource = (ResourceId)test.Arguments[0]; var fieldType = (HRBCClientPrivate.API.Field.FieldType)test.Arguments[1]; var formula = test.Arguments[2].ToString(); if (formula.Contains('[') && formula.Contains(']')) { var specs = ParseSpecs(formula, resource, fieldType); FieldsCreator.Data.Where(x => ((FieldDescriptor)x.Key).Resource == resource && ((FieldDescriptor)x.Key).Type == fieldType && specs.Select(item => item.Key).Contains(((FieldDescriptor)x.Key).Index)) .ToList() .ForEach(field => { SetFormula(string.Empty, (FieldDescriptor)field.Key); }); } }
public void TestStarted(NUnit.Framework.Interfaces.ITest test) { Debug.Log("Test started"); }
public void RunStarted(NUnit.Framework.Interfaces.ITest testsToRun) { CallbacksDelegator.instance.RunStarted(testsToRun); }
public void TestStarted(NUnit.Framework.Interfaces.ITest test) { CallbacksDelegator.instance.TestStarted(test); }