Ejemplo n.º 1
0
        public NativeTest()
        {
#if UNITY_EDITOR
            _nativeTest = new NativeTestDummy();
#elif UNITY_ANDROID
            _nativeTest = new NativeTestAndroid();
#endif
        }
Ejemplo n.º 2
0
 public DiscoveryVisitor(INativeTest parent, FixtureContext fixtureContext, IGlobalSetupManager globalSetup)
 {
     _parent                 = parent;
     _fixtureContext         = fixtureContext;
     _globalSetup            = globalSetup;
     _accumulatedDescendants = new List <INativeTest>();
     _accumulatedCategories  = new List <string>();
     _ignoreReason           = null;
 }
Ejemplo n.º 3
0
        public INativeTest CreateTest(INativeTest parentTest, TestPosition position, string description)
        {
            var testContext = new TestContext()
            {
                Name = NameReservations.GetReservedTestName(description, parentTest.Name),
                Position = position,
                FixtureContext = this
            };

            return NativeTestFactory.ForTest(this, testContext);
        }
Ejemplo n.º 4
0
        public static bool OpenLocalFolderInWinExplorer()
        {
            INativeTest nt = DependencyService.Get <INativeTest>();

            if (nt != null)
            {
                nt.OpenLocalFolderInWinExplorer();
                return(true);
            }
            return(false);
        }
Ejemplo n.º 5
0
        public INativeTest CreateTest(INativeTest parentTest, TestPosition position, string description)
        {
            var testContext = new TestContext()
            {
                Name = NameReservations.GetReservedTestName(description, parentTest.Name),
                Position = position,
                FixtureContext = this
            };

            return NativeTestFactory.ForTest(this, testContext);
        }
Ejemplo n.º 6
0
        private void ApplyCategoryAndIgnoreIfSet(INativeTest result)
        {
            if (_ignoreReason != null)
            {
                result.MarkTestIgnored(_ignoreReason);
            }

            foreach (var category in _accumulatedCategories)
            {
                result.AddCategory(category);
            }
        }
 public void AddChild(INativeTest test)
 {
     _nativeTest.AddChild(test);
 }
 public void AddChild(INativeTest test)
 {
     _nativeTest.AddChild(test);
 }
 public ValidatingNativeTestWrapper(INativeTest nativeTest)
 {
     _nativeTest = nativeTest;
 }
 public void AddChild(INativeTest test)
 {
 }
 public void SetRoot(INativeTest test)
 {
 }
 public void AddChild(INativeTest test)
 {
 }
 public void SetRoot(INativeTest test)
 {
 }
 public void SetRoot(INativeTest test)
 {
     _factory.SetRoot(test);
 }
 public void SetRoot(INativeTest test)
 {
     _factory.SetRoot(test);
 }
 public ValidatingNativeTestWrapper(INativeTest nativeTest)
 {
     _nativeTest = nativeTest;
 }
Ejemplo n.º 17
0
 public void SetRoot(INativeTest test)
 {
     RootTest = test;
 }
Ejemplo n.º 18
0
 public void AddChild(INativeTest test)
 {
     (_test as global::NUnit.Core.TestSuite).Add((Test)test.GetNative());
 }
Ejemplo n.º 19
0
 public void SetRoot(INativeTest test)
 {
     RootTest = test;
 }
Ejemplo n.º 20
0
 public void AddChild(INativeTest test)
 {
     (_test as global::NUnit.Core.TestSuite).Add((Test)test.GetNative());
 }