Exemplo n.º 1
0
        public static void AddSilverlightUnitTestTask(this IList<UnitTestTask> sequence, IProject silverlightProject, UnitTestProviders providers)
        {
            var provider = providers.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));
        }
Exemplo n.º 2
0
        public IUnitTestElement DeserializeElement(XmlElement parent, IUnitTestElement parentElement)
        {
            if (SilverlightUnitTestElement.CanDeserialize(parent))
            {
                return(SilverlightUnitTestElement.Deserialize(parent, this));
            }

            throw new ArgumentOutOfRangeException();
        }