Пример #1
0
 public static void AddSilverlightUnitTestTask(this IList<UnitTestTask> sequence, PlatformID silverlightPlatform, UnitTestManager manager)
 {
     var provider = manager.GetProvider(SilverlightUnitTestProvider.RunnerId);
     var element = new SilverlightUnitTestElement(provider);
     var remoteTask = new SilverlightUnitTestTask(silverlightPlatform.Version);
     sequence.Insert(0, new UnitTestTask(element, remoteTask));
 }
        public static void AddSilverlightUnitTestTask(this IList<UnitTestTask> sequence, IProject silverlightProject, UnitTestManager manager)
        {
            var provider = manager.GetProvider(SilverlightUnitTestProvider.RunnerId);
            var element = new SilverlightUnitTestElement(provider);

            var remoteTask = new SilverlightUnitTestTask(silverlightProject.PlatformID.Version, silverlightProject.GetXapPath(), silverlightProject.GetDllPath());
            sequence.Insert(0, new UnitTestTask(element, remoteTask));
        }
Пример #3
0
        public IUnitTestElement DeserializeElement(XmlElement parent, IUnitTestElement parentElement)
        {
            if (SilverlightUnitTestElement.CanDeserialize(parent))
            {
                return(SilverlightUnitTestElement.Deserialize(parent, this));
            }

            throw new ArgumentOutOfRangeException();
        }