public override void Save(string value, bool closeBrowserWindow = true)
        {
            if (string.IsNullOrEmpty(value))
            {
                _fileChooserMessage.SelectedFiles = null;
            }
            else
            {
                var scrubbedValue = JSONUtils.ScrubJSON(value).Replace(@"\\", @"\");

                var result = new Dev2JsonSerializer().Deserialize <FileChooserResult>(scrubbedValue);
                _fileChooserMessage.SelectedFiles = result.FilePaths;
            }
            if (closeBrowserWindow)
            {
                Close();
            }
        }
示例#2
0
    static EnemiesInfo()
    {
        string filename = "enemiesInfo";

        JSONNode rootNode = JSONUtils.ParseJSON(filename);

        if (rootNode == null)
        {
            return;
        }

        version = rootNode["version"].Value;
        JSONNode enemiesInfoJSON = rootNode["enemiesInfo"];

        foreach (JSONNode node in enemiesInfoJSON.Childs)
        {
            EnemyInfo enemyInfo = new EnemyInfo(node);
            m_enemiesInfo[enemyInfo.m_name] = enemyInfo;
        }
    }
示例#3
0
    /// <summary>
    /// Obtiene los items del jugador.
    /// </summary>
    /// <returns>The items jugador.</returns>
    /// <param name="usuario">Usuario.</param>
    private List <Item> ObtenerItemsJugador(DataSnapshot usuario)
    {
        List <Item> itemsJugador = new List <Item>();

        if (!usuario.HasChild("items"))
        {
            return(itemsJugador);
        }

        var rawjson = JSONUtils.StringToJSON(usuario.Child("items").GetRawJsonValue());

        for (int i = 0; i < rawjson.Count; i++)
        {
            int    tipoItem       = Convert.ToInt32((long)usuario.Child("items").Child(i.ToString()).Child("tipoItem").GetValue(true));
            string rutaImagenItem = (string)usuario.Child("items").Child(i.ToString()).Child("rutaImagen").GetValue(true);
            int    cantidad       = Convert.ToInt32((long)usuario.Child("items").Child(i.ToString()).Child("cantidad").GetValue(true));
            itemsJugador.Add(CrearItemJugador(tipoItem, rutaImagenItem, cantidad));
        }
        return(itemsJugador);
    }
    /// <summary>
    /// Adds the specified object to a prexisting JSON file and creates a JSON file if the file does not exist
    /// </summary>
    public static void AddToJSONFile <T>(T inObjectToSave, string inFileName)
    {
        if (GetJSONText(inFileName) == null)
        {
            CreateJSONFile(inObjectToSave, inFileName);

            string initialJSONText = JSONUtils.ToJSON(inObjectToSave);
            WriteTextToFile(initialJSONText, inFileName);

            return;
        }

        List <T> jsonObjects = GetObjectsFromJSON <T>(inFileName).OfType <T>().ToList();

        jsonObjects.Add(inObjectToSave);

        string newJSONText = JSONUtils.ToJSON(jsonObjects.ToArray());

        WriteTextToFile(newJSONText, inFileName);
    }
示例#5
0
            public static object OnConvertFromJSONElement(object obj, JSONElement node)
            {
                if (node == null)
                {
                    return(obj);
                }

                Gradient gradient = new Gradient();

                JSONElement colorKeysJSONElement = JSONUtils.FindChildWithAttributeValue(node, JSONConverter.kJSONFieldIdAttributeTag, "colorKeys");

                if (colorKeysJSONElement != null)
                {
                    List <GradientColorKey> colorKeys = new List <GradientColorKey>();
                    foreach (JSONElement child in colorKeysJSONElement.ChildNodes)
                    {
                        GradientColorKey colorKey = new GradientColorKey();
                        colorKey.color = JSONConverter.FieldObjectFromJSONElement <Color>(child, "color");
                        colorKey.time  = JSONConverter.FieldObjectFromJSONElement <float>(child, "time");
                        colorKeys.Add(colorKey);
                    }
                    gradient.colorKeys = colorKeys.ToArray();
                }

                JSONElement alphaKeysJSONElement = JSONUtils.FindChildWithAttributeValue(node, JSONConverter.kJSONFieldIdAttributeTag, "alphaKeys");

                if (alphaKeysJSONElement != null)
                {
                    List <GradientAlphaKey> alphaKeys = new List <GradientAlphaKey>();
                    foreach (JSONElement child in alphaKeysJSONElement.ChildNodes)
                    {
                        GradientAlphaKey alphaKey = new GradientAlphaKey();
                        alphaKey.alpha = JSONConverter.FieldObjectFromJSONElement <float>(child, "alpha");
                        alphaKey.time  = JSONConverter.FieldObjectFromJSONElement <float>(child, "time");
                        alphaKeys.Add(alphaKey);
                    }
                    gradient.alphaKeys = alphaKeys.ToArray();
                }

                return(gradient);
            }
示例#6
0
    /// <summary>
    /// Obtiene las cartas del jugador.
    /// </summary>
    /// <returns>The cartas jugador.</returns>
    /// <param name="usuario">Usuario.</param>
    private List <Carta> ObtenerCartasJugador(DataSnapshot usuario)
    {
        List <Carta> cartasJugador = new List <Carta>();

        if (!usuario.HasChild("cartas"))
        {
            return(cartasJugador);
        }
        var rawjson = JSONUtils.StringToJSON(usuario.Child("cartas").GetRawJsonValue());

        for (int i = 0; i < rawjson.Count; i++)
        {
            string   idAsset      = (string)usuario.Child("cartas").Child(i.ToString()).Child("asset").GetValue(true);
            var      progresoJSON = JSONUtils.StringToJSON(usuario.Child("cartas").Child(i.ToString()).Child("progreso").GetRawJsonValue());
            Progreso progreso     = new Progreso();
            progreso.Piedra = Int32.Parse(progresoJSON ["material"]);
            progreso.Pocion = Int32.Parse(progresoJSON ["pocion"]);
            cartasJugador.Add(CrearCartaJugador(idAsset, progreso));
        }
        return(cartasJugador);
    }
示例#7
0
        public void ConformanceTestPasses(string id, string testname, ConformanceCase conformanceCase)
        {
            JToken result = conformanceCase.run();

            if (conformanceCase.error != null)
            {
                Assert.True(((string)result["error"]).StartsWith((string)conformanceCase.error), "Resulting error doesn't match expectations.");
            }
            else
            {
                Console.WriteLine(id);
                Console.WriteLine("Actual:");
                Console.Write(JSONUtils.ToPrettyString(result));
                Console.WriteLine("--------------------------");
                Console.WriteLine("Expected:");
                Console.Write(JSONUtils.ToPrettyString(conformanceCase.output));
                Console.WriteLine("--------------------------");

                Assert.True(JsonLdUtils.DeepCompare(result, conformanceCase.output), "Returned JSON doesn't match expectations.");
            }
        }
 internal static void HandleUsageNotification(JObject resJson, string vmName)
 {
     try
     {
         string result           = "";
         string jsonObjectString = JSONUtils.GetJSONObjectString(AppUsageTimer.GetRealtimeDictionary());
         JObject.Parse(resJson["bluestacks_notification"][(object)"payload"].ToString()).AssignStringIfContains("handler", ref result);
         string url = WebHelper.GetServerHost() + "/v2/" + result;
         Dictionary <string, string> dictionary = new Dictionary <string, string>()
         {
             ["oem"]         = "bgp",
             ["client_ver"]  = RegistryManager.Instance.ClientVersion,
             ["engine_ver"]  = RegistryManager.Instance.Version,
             ["guid"]        = RegistryManager.Instance.UserGuid,
             ["locale"]      = RegistryManager.Instance.UserSelectedLocale,
             ["partner"]     = RegistryManager.Instance.Partner,
             ["campaignMD5"] = RegistryManager.Instance.CampaignMD5
         };
         if (!string.IsNullOrEmpty(RegistryManager.Instance.RegisteredEmail))
         {
             dictionary["email"] = RegistryManager.Instance.RegisteredEmail;
         }
         dictionary["usage_data"] = jsonObjectString;
         if (!dictionary.ContainsKey("current_app"))
         {
             dictionary.Add("current_app", BlueStacksUIUtils.DictWindows[vmName].mTopBar.mAppTabButtons.SelectedTab.PackageName);
         }
         else
         {
             dictionary["current_app"] = BlueStacksUIUtils.DictWindows[vmName].mTopBar.mAppTabButtons.SelectedTab.PackageName;
         }
         Dictionary <string, string> data = dictionary;
         string empty = string.Empty;
         Logger.Info("real time app usage response:" + BstHttpClient.Post(url, data, (Dictionary <string, string>)null, false, empty, 0, 1, 0, false, "bgp"));
     }
     catch (Exception ex)
     {
         Logger.Error("Exception in handling usage notification" + ex.ToString());
     }
 }
示例#9
0
            public static void OnConvertToJSONElement(object obj, JSONElement node)
            {
                AnimationCurve curve = (AnimationCurve)obj;

                if (curve != null)
                {
                    JSONElement keyframesJSONElement = JSONUtils.CreateJSONElement(node.OwnerDocument, JSONConverter.kJSONArrayTag);
                    for (int i = 0; i < curve.length; i++)
                    {
                        Keyframe    keyFrame            = curve[i];
                        JSONElement keyFrameJSONElement = JSONUtils.CreateJSONElement(node.OwnerDocument, "KeyFrame");
                        JSONConverter.AppendFieldObject(keyFrameJSONElement, keyFrame.inTangent, "inTangent");
                        JSONConverter.AppendFieldObject(keyFrameJSONElement, keyFrame.outTangent, "outTangent");
                        JSONConverter.AppendFieldObject(keyFrameJSONElement, keyFrame.tangentMode, "tangentMode");
                        JSONConverter.AppendFieldObject(keyFrameJSONElement, keyFrame.time, "time");
                        JSONConverter.AppendFieldObject(keyFrameJSONElement, keyFrame.value, "value");
                        JSONUtils.SafeAppendChild(keyframesJSONElement, keyFrameJSONElement);
                    }
                    JSONUtils.AddAttribute(node.OwnerDocument, keyframesJSONElement, JSONConverter.kJSONFieldIdAttributeTag, "keyFrames");
                    JSONUtils.SafeAppendChild(node, keyframesJSONElement);
                }
            }
示例#10
0
        public NormalizedRdf NormalizeRdf(HashSet <Triple> triples)
        {
            var    model         = _rdf4jMapper.TriplesToGraph(triples);
            string modelAsJsonLd = _rdf4jMapper.GraphToSerialization(model, new VDS.RDF.Writing.JsonLdWriter());

            //fix for JsonLdWriter bug
            modelAsJsonLd = modelAsJsonLd.Replace("@language\": \"http:", "@type\": \"http:");
            try
            {
                var jsonObject           = JSONUtils.FromString(modelAsJsonLd);
                var normalizedJsonObject = JsonLdProcessor.Normalize(jsonObject, PrepareJsonLdOptions());

                return(new NormalizedRdf(new RdfDataset(triples), normalizedJsonObject.ToString(), RdfFormat.JSON_LD));
            }
            catch (IOException ex)
            {
                throw new NormalizingRdfException("Exception was thrown while normalizing JSON object.", ex);
            }
            catch (JsonLdError ex)
            {
                throw new NormalizingRdfException("Exception was thrown while normalizing JSON object.", ex);
            }
        }
示例#11
0
        public void DummyTest()
        {
            var pathUri    = System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase);
            var pathString = new Uri(pathUri).LocalPath;

            pathString = pathString + "\\Files\\ValidationsNotFormatted.scala";

            // This text is added only once to the file.
            if (File.Exists(pathString))
            {
                // Open the file to read from.
                string code = File.ReadAllText(pathString);

                var json = JSONUtils.EscapeStringValue(code);



                var data = "{'code': '" + code + "'}";
                // var data = "{'code': '" + code + "'}";

                JToken jt = JToken.Parse(data);
            }
        }
示例#12
0
 /// <summary>
 /// Returns an array of specified objects from a JSON file
 /// </summary>
 public static T[] GetObjectsFromJSON <T>(string inFileName)
 {
     return(JSONUtils.FromJSON <T>(GetJSONText(inFileName)));
 }
示例#13
0
    // Update is called once per frame
    void Start()
    {
        JSONUtils.initJsonObjectConversion();

        StartCoroutine(getSummonerInformation("Riktor"));
    }
示例#14
0
    /// <summary>
    /// Creates a JSON file from the specified object and overrides any JSON file with the same name
    /// </summary>
    public static void CreateJSONFile <T>(T inObjectToSave, string inFileName)
    {
        string jsonText = JSONUtils.ToJSON(inObjectToSave, true);

        WriteTextToFile(jsonText, inFileName);
    }
示例#15
0
 public void MakeBracketedListFromValues_EmptyKey_ReturnsNull()
 {
     Assert.IsNull(JSONUtils.MakeBracketedListFromValues(string.Empty, new[] { "blah" }));
 }
示例#16
0
            public static object FromJSONElement(Type objType, JSONElement node, object defualtObject = null)
            {
                object obj = null;

                //If object is an array convert each element one by one
                if (objType.IsArray)
                {
                    JSONArray jsonArray = (JSONArray)node;

                    int numChildren = node != null ? jsonArray._elements.Count : 0;

                    //Create a new array from this nodes children
                    Array array = Array.CreateInstance(objType.GetElementType(), numChildren);

                    for (int i = 0; i < array.Length; i++)
                    {
                        //Convert child node
                        object elementObj = FromJSONElement(objType.GetElementType(), jsonArray._elements[i]);
                        //Then set it on the array
                        array.SetValue(elementObj, i);
                    }

                    //Then set value on member
                    obj = array;
                }
                else
                {
                    //First find the actual object type from the JSONElement (could be different due to inheritance)
                    Type realObjType = GetRuntimeType(node);

                    //If the JSON node type and passed in type are both generic then read type from runtime type node
                    if (NeedsRuntimeTypeInfo(objType, realObjType))
                    {
                        realObjType = ReadTypeFromRuntimeTypeInfo(node);

                        //If its still can't be found then use passed in type
                        if (realObjType == null)
                        {
                            realObjType = objType;
                        }
                    }
                    //If we don't have an JSONElement or the object type is invalid then use passed in type
                    else if (node == null || realObjType == null || realObjType.IsAbstract || realObjType.IsGenericType)
                    {
                        realObjType = objType;
                    }

                    //Convert objects fields
                    if (defualtObject != null)
                    {
                        obj = defualtObject;
                    }
                    //Create an object instance if default not passed in
                    else if (!realObjType.IsAbstract)
                    {
                        obj = CreateInstance(realObjType);
                    }

                    //If the object has an associated converter class, convert the object using it
                    ObjectConverter converter = GetConverter(realObjType);
                    if (converter != null)
                    {
                        obj = converter._onConvertFromJSONElement(obj, node);
                    }
                    //Otherwise convert fields
                    else if (node != null && obj != null)
                    {
                        JSONField[] JSONFields = GetJSONFields(realObjType);
                        foreach (JSONField JSONField in JSONFields)
                        {
                            //First try and find JSON node with an id attribute matching our attribute id
                            JSONElement fieldNode = JSONUtils.FindChildWithAttributeValue(node, kJSONFieldIdAttributeTag, JSONField.GetID());

                            object fieldObj     = JSONField.GetValue(obj);
                            Type   fieldObjType = JSONField.GetFieldType();

                            //Convert the object from JSON node
                            fieldObj = FromJSONElement(fieldObjType, fieldNode, fieldObj);

                            //Then set value on parent object
                            try
                            {
                                JSONField.SetValue(obj, fieldObj);
                            }
                            catch (Exception e)
                            {
                                throw e;
                            }
                        }
                    }
                }

                //IJSONConversionCallbackReceiver callback
                if (obj is IJSONConversionCallbackReceiver)
                {
                    ((IJSONConversionCallbackReceiver)obj).OnConvertFromJSONElement(node);
                }

                return(obj);
            }
示例#17
0
 private void ViewJsonObjects(IServiceInput input)
 {
     JsonObjectsView?.ShowJsonString(JSONUtils.Format(JSONUtils.Format(input.Dev2ReturnType)));
 }
示例#18
0
 // Use this for initialization
 private void Awake()
 {
     //Initialize JSON Object converters.
     JSONUtils.initJsonObjectConversion();
 }
示例#19
0
        /// <exception cref="JsonLDNet.Core.JsonLdError"></exception>
        public virtual RemoteDocument LoadDocument(string url)
        {
#if !PORTABLE && !IS_CORECLR
            RemoteDocument  doc = new RemoteDocument(url, null);
            HttpWebResponse resp;

            try
            {
                HttpWebRequest req = (HttpWebRequest)HttpWebRequest.Create(url);
                req.Accept = AcceptHeader;
                resp       = (HttpWebResponse)req.GetResponse();
                bool isJsonld = resp.Headers[HttpResponseHeader.ContentType] == "application/ld+json";
                if (!resp.Headers[HttpResponseHeader.ContentType].Contains("json"))
                {
                    throw new JsonLdError(JsonLdError.Error.LoadingDocumentFailed, url);
                }

                string[] linkHeaders = resp.Headers.GetValues("Link");
                if (!isJsonld && linkHeaders != null)
                {
                    linkHeaders = linkHeaders.SelectMany((h) => h.Split(",".ToCharArray()))
                                  .Select(h => h.Trim()).ToArray();
                    IEnumerable <string> linkedContexts = linkHeaders.Where(v => v.EndsWith("rel=\"http://www.w3.org/ns/json-ld#context\""));
                    if (linkedContexts.Count() > 1)
                    {
                        throw new JsonLdError(JsonLdError.Error.MultipleContextLinkHeaders);
                    }
                    string header        = linkedContexts.First();
                    string linkedUrl     = header.Substring(1, header.IndexOf(">") - 1);
                    string resolvedUrl   = URL.Resolve(url, linkedUrl);
                    var    remoteContext = this.LoadDocument(resolvedUrl);
                    doc.contextUrl = remoteContext.documentUrl;
                    doc.context    = remoteContext.document;
                }

                Stream stream = resp.GetResponseStream();

                doc.DocumentUrl = req.Address.ToString();
                doc.Document    = JSONUtils.FromInputStream(stream);
            }
            catch (JsonLdError)
            {
                throw;
            }
            catch (WebException webException)
            {
                try
                {
                    resp = (HttpWebResponse)webException.Response;
                    int baseStatusCode = (int)(Math.Floor((double)resp.StatusCode / 100)) * 100;
                    if (baseStatusCode == 300)
                    {
                        string location = resp.Headers[HttpResponseHeader.Location];
                        if (!string.IsNullOrWhiteSpace(location))
                        {
                            // TODO: Add recursion break or simply switch to HttpClient so we don't have to recurse on HTTP redirects.
                            return(LoadDocument(location));
                        }
                    }
                }
                catch (Exception innerException)
                {
                    throw new JsonLdError(JsonLdError.Error.LoadingDocumentFailed, url, innerException);
                }

                throw new JsonLdError(JsonLdError.Error.LoadingDocumentFailed, url, webException);
            }
            catch (Exception exception)
            {
                throw new JsonLdError(JsonLdError.Error.LoadingDocumentFailed, url, exception);
            }
            return(doc);
#else
            throw new PlatformNotSupportedException();
#endif
        }
示例#20
0
 public void MakeBracketedListFromValues_NullList_ReturnsNull()
 {
     Assert.IsNull(JSONUtils.MakeBracketedListFromValues("blah", null));
 }
示例#21
0
 void ViewObjectsResultForParameterInput(IServiceInput input)
 {
     JsonObjectsView?.ShowJsonString(JSONUtils.Format(input.Dev2ReturnType));
 }
示例#22
0
 public void MakeBracketedListFromValues_EmptyList_ReturnsNull()
 {
     Assert.IsNull(JSONUtils.MakeBracketedListFromValues("blah", new string[] { }));
 }
示例#23
0
 public void MakeBracketedListFromValues_GoodKeyAndList_ReturnsBracketedList()
 {
     Assert.AreEqual("\"key\":[\"red\",\"green\",\"blue\"]",
                     JSONUtils.MakeBracketedListFromValues("key", new[] { "red", "green", "blue" }));
 }
示例#24
0
            public static T FieldObjectFromJSONElement <T>(JSONElement parentNode, string id, T defualtObject = default(T))
            {
                JSONElement childJSONElement = JSONUtils.FindChildWithAttributeValue(parentNode, kJSONFieldIdAttributeTag, id);

                return((T)FromJSONElement(typeof(T), childJSONElement, defualtObject));
            }
示例#25
0
        public void JSONUtils_ReplaceSlashes_WithLargeData_ShouldNotBlowOut()
        {
            //------------Setup for test--------------------------
            #region testData

            const string TestData = @"<?xml version=""1.0"" encoding=""UTF-8""?>
<TestRun id=""069cce00-4b2c-425e-a343-d784dd187adf"" name=""RSAKLFASHLEY$@RSAKLFASHLEY 2013-11-01 13:43:52"" runUser=""NT AUTHORITY\NETWORK SERVICE"">
  <TestSettings name=""Unit Test with Coverage"" id=""3264dd0f-6fc1-4cb9-b44f-c649fef29605"">
    <Description>These are default test settings for a local test run.</Description>
    <Deployment userDeploymentRoot=""D:\Builds\ReleaseGate\TestResults"" useDefaultDeploymentRoot=""false"" runDeploymentRoot=""RSAKLFASHLEY$_RSAKLFASHLEY 2013-11-01 13_43_52"">
      <DeploymentItem filename=""ConsoleAppToTestExecuteCommandLineActivity\bin\Debug\ConsoleAppToTestExecuteCommandLineActivity.exe"" />
      <DeploymentItem filename=""Binaries\IronPython.Modules.dll"" />
      <DeploymentItem filename=""Binaries\Microsoft.Scripting.dll"" />
      <DeploymentItem filename=""Binaries\IronRuby.Libraries.dll"" />
      <DeploymentItem filename=""Binaries\Microsoft.Dynamic.dll"" />
      <DeploymentItem filename=""Binaries\IronPython.dll"" />
      <DeploymentItem filename=""Binaries\CefSharp\"" />
      <DeploymentItem filename=""Binaries\IronRuby.Libraries.Yaml.dll"" />
      <DeploymentItem filename=""Binaries\IronRuby.dll"" />
    </Deployment>
    <NamingScheme baseName=""UT"" />
    <Execution>
      <Timeouts runTimeout=""1800000"" testTimeout=""120000"" />
      <TestTypeSpecific>
        <UnitTestRunConfig testTypeId=""13cdc9d9-ddb5-4fa4-a97d-d965ccfc6d4b"">
          <AssemblyResolution>
            <TestDirectory useLoadContext=""true"" />
          </AssemblyResolution>
        </UnitTestRunConfig>
        <WebTestRunConfiguration testTypeId=""4e7599fa-5ecb-43e9-a887-cd63cf72d207"">
          <Browser name=""Internet Explorer 9.0"" MaxConnections=""6"">
            <Headers>
              <Header name=""User-Agent"" value=""Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0)"" />
              <Header name=""Accept"" value=""*/*"" />
              <Header name=""Accept-Language"" value=""{{$IEAcceptLanguage}}"" />
              <Header name=""Accept-Encoding"" value=""GZIP"" />
            </Headers>
          </Browser>
        </WebTestRunConfiguration>
      </TestTypeSpecific>
      <AgentRule name=""LocalMachineDefaultRole"">
        <DataCollectors>
          <DataCollector uri=""datacollector://microsoft/CodeCoverage/1.0"" assemblyQualifiedName=""Microsoft.VisualStudio.TestTools.CodeCoverage.CoveragePlugIn, Microsoft.VisualStudio.QualityTools.Plugins.CodeCoverage, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"" friendlyName=""Code Coverage (Visual Studio 2010)"">
          </DataCollector>
        </DataCollectors>
      </AgentRule>
    </Execution>
  </TestSettings>
  <Times creation=""2013-11-01T13:43:52.8654497+02:00"" queuing=""2013-11-01T13:43:55.0394497+02:00"" start=""2013-11-01T13:43:55.5834497+02:00"" finish=""2013-11-01T13:47:05.6964497+02:00"" />
  <ResultSummary outcome=""Failed"">
    <Counters total=""4241"" executed=""4241"" passed=""4236"" error=""0"" failed=""3"" timeout=""0"" aborted=""0"" inconclusive=""2"" passedButRunAborted=""0"" notRunnable=""0"" notExecuted=""0"" disconnected=""0"" warning=""0"" completed=""0"" inProgress=""0"" pending=""0"" />
  </ResultSummary>
  <TestDefinitions>
    <UnitTest name=""ActivityCollectionDesignerViewModel_ExecuteShowErrorsCommand_ShowErrorsIsTrue_ShowErrorsIsSetToFalse"" storage=""d:\builds\releasegate\binaries\dev2.activities.designers.tests.dll"" id=""6142bab1-509e-a426-59b7-e5d8bc6d62cf"">
      <Owners>
        <Owner name=""Tshepo Ntlhokoa"" />
      </Owners>
      <TestCategory>
        <TestCategoryItem TestCategory=""ActivityCollectionDesignerViewModel_ExecuteShowErrorsCommand"" />
      </TestCategory>
      <Execution id=""46ecc213-c05f-4b20-9407-0b99ea2cfd18"" />
      <TestMethod codeBase=""D:/Builds/ReleaseGate/Binaries/Dev2.Activities.Designers.Tests.DLL"" adapterTypeName=""Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestAdapter, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.Adapter, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"" className=""Dev2.Activities.Designers.Tests.Designers2.Core.ActivityCollectionDesignerViewModelTests, Dev2.Activities.Designers.Tests, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null"" name=""ActivityCollectionDesignerViewModel_ExecuteShowErrorsCommand_ShowErrorsIsTrue_ShowErrorsIsSetToFalse"" />
    </UnitTest>
    <UnitTest name=""DataListInputWhereValidArgsDataListHasInputsScalarsAndRecSetExpectCorrectString"" storage=""d:\builds\releasegate\binaries\dev2.runtime.tests.dll"" id=""9fd0ecee-f50c-e066-0468-ce2b55bda4ab"">
      <Execution id=""98e1e23c-f12a-4415-944b-e6deb57ce44f"" />
      <TestMethod codeBase=""D:/Builds/ReleaseGate/Binaries/Dev2.Runtime.Tests.DLL"" adapterTypeName=""Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestAdapter, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.Adapter, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"" className=""Dev2.Tests.Runtime.ServiceModel.ResourcesTests, Dev2.Runtime.Tests, Version=0.2.8.0, Culture=neutral, PublicKeyToken=null"" name=""DataListInputWhereValidArgsDataListHasInputsScalarsAndRecSetExpectCorrectString"" />
    </UnitTest>
    <UnitTest name=""BlankSpaceTypeSplitMultiple_Expected_Split_Mutiple_At_BlankSpace"" storage=""d:\builds\releasegate\binaries\dev2.activities.tests.dll"" id=""7e7e630d-fafe-de84-423b-98111f0c4f10"">
      <Execution id=""dfc91477-fc60-4272-9528-87c83c36ea9e"" />
      <TestMethod codeBase=""D:/Builds/ReleaseGate/Binaries/Dev2.Activities.Tests.DLL"" adapterTypeName=""Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestAdapter, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.Adapter, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"" className=""Dev2.Tests.Activities.ActivityTests.DataSplitActivityTest, Dev2.Activities.Tests, Version=0.2.8.0, Culture=neutral, PublicKeyToken=null"" name=""BlankSpaceTypeSplitMultiple_Expected_Split_Mutiple_At_BlankSpace"" />
    </UnitTest>
    <UnitTest name=""EmptyStringToBoolConverter_UnitTest_FalseWhenEmptyStringWhiteSpace_ExpectsTrue"" storage=""d:\builds\releasegate\binaries\dev2.studio.core.tests.dll"" id=""edea71e2-ab69-da37-c337-d40ffd7134a1"">
      <Description>When a string is white space, expect false when istrueisempty equals false</Description>
      <Owners>
        <Owner name=""Jurie Smit"" />
      </Owners>
      <TestCategory>
        <TestCategoryItem TestCategory=""EmptyStringToBoolConverter"" />
      </TestCategory>
      <Execution id=""7717e8d0-6284-4e03-b460-12414be89064"" />
      <TestMethod codeBase=""D:/Builds/ReleaseGate/Binaries/Dev2.Studio.Core.Tests.DLL"" adapterTypeName=""Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestAdapter, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.Adapter, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"" className=""Dev2.Core.Tests.ConverterTests.EmptyStringToBoolConverterTests, Dev2.Studio.Core.Tests, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null"" name=""EmptyStringToBoolConverter_UnitTest_FalseWhenEmptyStringWhiteSpace_ExpectsTrue"" />
    </UnitTest>
    <UnitTest name=""StartsWith_MatchCase_False_RequireAllFieldsToMatch_AllFieldsMatch_Expected_3"" storage=""d:\builds\releasegate\binaries\dev2.core.tests.dll"" id=""ab77f188-f223-34cf-e658-5de592dab87e"">
      <Execution id=""a4180f20-d3bc-414f-8821-eb11e4e705e2"" />
      <TestMethod codeBase=""D:/Builds/ReleaseGate/Binaries/Dev2.Core.Tests.DLL"" adapterTypeName=""Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestAdapter, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.Adapter, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"" className=""Dev2.Tests.RecordsetSearch.RsOpTests, Dev2.Core.Tests, Version=0.2.8.0, Culture=neutral, PublicKeyToken=null"" name=""StartsWith_MatchCase_False_RequireAllFieldsToMatch_AllFieldsMatch_Expected_3"" />
    </UnitTest>
    <UnitTest name=""CanInvokeDecisionStack_MultipleDecision_With_OR_Expect_True"" storage=""d:\builds\releasegate\binaries\dev2.data.tests.dll"" id=""ebaa4ad7-7566-977f-f72c-5d9012d134c0"">
      <Execution id=""c82d7c97-24fe-4e4e-abb6-d48adbd36060"" />
      <TestMethod codeBase=""D:/Builds/ReleaseGate/Binaries/Dev2.Data.Tests.DLL"" adapterTypeName=""Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestAdapter, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.Adapter, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"" className=""Dev2.Data.Tests.SystemTemplates.DecisionTest, Dev2.Data.Tests, Version=0.2.8.0, Culture=neutral, PublicKeyToken=null"" name=""CanInvokeDecisionStack_MultipleDecision_With_OR_Expect_True"" />
    </UnitTest>
    <UnitTest name=""TcpConnection_UnitTest_ConnectFails_DoesInvokeDisconnect"" storage=""d:\builds\releasegate\binaries\dev2.studio.core.tests.dll"" id=""40e1ba7a-d657-55ba-f6db-bfac68b345da"">
      <Description>TcpConnection Connect must disconnect when connection to server fails.</Description>
      <Owners>
        <Owner name=""Trevor Williams-Ros"" />
      </Owners>
      <TestCategory>
        <TestCategoryItem TestCategory=""TcpConnection_Connect"" />
      </TestCategory>
      <Execution id=""3e6f82bf-5fb8-4293-8d09-0542747e3c75"" />
      <TestMethod codeBase=""D:/Builds/ReleaseGate/Binaries/Dev2.Studio.Core.Tests.DLL"" adapterTypeName=""Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestAdapter, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.Adapter, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"" className=""Dev2.Core.Tests.Network.TcpConnectionTests, Dev2.Studio.Core.Tests, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null"" name=""TcpConnection_UnitTest_ConnectFails_DoesInvokeDisconnect"" />
    </UnitTest>
    <UnitTest name=""GetIntellisenseResultsWithSumAndAfterCommaAndBeforeBraceExpectedAllVarsInResults"" storage=""d:\builds\releasegate\binaries\dev2.studio.core.tests.dll"" id=""cf841a6b-14c1-1575-edba-45b97f0027ad"">
      <Execution id=""368c921f-24c9-4120-9e59-1313ed0c8675"" />
      <TestMethod codeBase=""D:/Builds/ReleaseGate/Binaries/Dev2.Studio.Core.Tests.DLL"" adapterTypeName=""Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestAdapter, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.Adapter, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"" className=""Dev2.Core.Tests.IntellisenseProviderTest, Dev2.Studio.Core.Tests, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null"" name=""GetIntellisenseResultsWithSumAndAfterCommaAndBeforeBraceExpectedAllVarsInResults"" />
    </UnitTest>
    <UnitTest name=""GetDebugInputOutputWithScalarCsvsExpectedPass"" storage=""d:\builds\releasegate\binaries\dev2.activities.tests.dll"" id=""18db7495-8579-e9df-3f65-223579568fd5"">
      <Execution id=""e819c819-7d63-4e7c-a2f1-97464c7134b8"" />
      <TestMethod codeBase=""D:/Builds/ReleaseGate/Binaries/Dev2.Activities.Tests.DLL"" adapterTypeName=""Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestAdapter, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.Adapter, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"" className=""Dev2.Tests.Activities.ActivityTests.ForEachActivityTest, Dev2.Activities.Tests, Version=0.2.8.0, Culture=neutral, PublicKeyToken=null"" name=""GetDebugInputOutputWithScalarCsvsExpectedPass"" />
    </UnitTest>
    <UnitTest name=""ToStringOnEnumerableSegment_WhereEnumerablesArentConsidered_Expected_ScalarFormat"" storage=""d:\builds\releasegate\binaries\dev2.core.tests.dll"" id=""3a95af49-978b-ffba-8a29-cb7ad2cc403f"">
      <Execution id=""523e1acc-3e26-4100-8e0d-98c8c0705347"" />
      <TestMethod codeBase=""D:/Builds/ReleaseGate/Binaries/Dev2.Core.Tests.DLL"" adapterTypeName=""Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestAdapter, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.Adapter, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"" className=""Unlimited.UnitTest.Framework.ConverterTests.GraphTests.StringTests.JsonTest.JsonPathSegmentTests, Dev2.Core.Tests, Version=0.2.8.0, Culture=neutral, PublicKeyToken=null"" name=""ToStringOnEnumerableSegment_WhereEnumerablesArentConsidered_Expected_ScalarFormat"" />
    </UnitTest>
    <UnitTest name=""SortActivity_MultipleRecordSetContainingSameSortValue_DateTime_SortedWithTheRecordSetAppearingMultipleTimes"" storage=""d:\builds\releasegate\binaries\dev2.activities.tests.dll"" id=""ae44269d-d5bb-bd9f-52dd-eaec4fbb93d9"">
      <Execution id=""310cc625-6b0f-47d6-90b5-376b97da50e5"" />
      <TestMethod codeBase=""D:/Builds/ReleaseGate/Binaries/Dev2.Activities.Tests.DLL"" adapterTypeName=""Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestAdapter, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.Adapter, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"" className=""Dev2.Tests.Activities.ActivityTests.SortRecordsTest, Dev2.Activities.Tests, Version=0.2.8.0, Culture=neutral, PublicKeyToken=null"" name=""SortActivity_MultipleRecordSetContainingSameSortValue_DateTime_SortedWithTheRecordSetAppearingMultipleTimes"" />
    </UnitTest>
</TestDefinitions>
</TestRun>
Travis Frisinger
Phone:    +27 (0) 31 716 9797
E-mail:    [email protected]
Website: http://dev2.co.za";

            const string ExpectedResult = @"<?xml version=""1.0"" encoding=""UTF-8""?>
<TestRun id=""069cce00-4b2c-425e-a343-d784dd187adf"" name=""RSAKLFASHLEY$@RSAKLFASHLEY 2013-11-01 13:43:52"" runUser=""NT AUTHORITY\\NETWORK SERVICE"">
  <TestSettings name=""Unit Test with Coverage"" id=""3264dd0f-6fc1-4cb9-b44f-c649fef29605"">
    <Description>These are default test settings for a local test run.</Description>
    <Deployment userDeploymentRoot=""D:\\Builds\\ReleaseGate\\TestResults"" useDefaultDeploymentRoot=""false"" runDeploymentRoot=""RSAKLFASHLEY$_RSAKLFASHLEY 2013-11-01 13_43_52"">
      <DeploymentItem filename=""ConsoleAppToTestExecuteCommandLineActivity\\bin\\Debug\\ConsoleAppToTestExecuteCommandLineActivity.exe"" />
      <DeploymentItem filename=""Binaries\\IronPython.Modules.dll"" />
      <DeploymentItem filename=""Binaries\\Microsoft.Scripting.dll"" />
      <DeploymentItem filename=""Binaries\\IronRuby.Libraries.dll"" />
      <DeploymentItem filename=""Binaries\\Microsoft.Dynamic.dll"" />
      <DeploymentItem filename=""Binaries\\IronPython.dll"" />
      <DeploymentItem filename=""Binaries\\CefSharp\\"" />
      <DeploymentItem filename=""Binaries\\IronRuby.Libraries.Yaml.dll"" />
      <DeploymentItem filename=""Binaries\\IronRuby.dll"" />
    </Deployment>
    <NamingScheme baseName=""UT"" />
    <Execution>
      <Timeouts runTimeout=""1800000"" testTimeout=""120000"" />
      <TestTypeSpecific>
        <UnitTestRunConfig testTypeId=""13cdc9d9-ddb5-4fa4-a97d-d965ccfc6d4b"">
          <AssemblyResolution>
            <TestDirectory useLoadContext=""true"" />
          </AssemblyResolution>
        </UnitTestRunConfig>
        <WebTestRunConfiguration testTypeId=""4e7599fa-5ecb-43e9-a887-cd63cf72d207"">
          <Browser name=""Internet Explorer 9.0"" MaxConnections=""6"">
            <Headers>
              <Header name=""User-Agent"" value=""Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0)"" />
              <Header name=""Accept"" value=""*/*"" />
              <Header name=""Accept-Language"" value=""{{$IEAcceptLanguage}}"" />
              <Header name=""Accept-Encoding"" value=""GZIP"" />
            </Headers>
          </Browser>
        </WebTestRunConfiguration>
      </TestTypeSpecific>
      <AgentRule name=""LocalMachineDefaultRole"">
        <DataCollectors>
          <DataCollector uri=""datacollector://microsoft/CodeCoverage/1.0"" assemblyQualifiedName=""Microsoft.VisualStudio.TestTools.CodeCoverage.CoveragePlugIn, Microsoft.VisualStudio.QualityTools.Plugins.CodeCoverage, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"" friendlyName=""Code Coverage (Visual Studio 2010)"">
          </DataCollector>
        </DataCollectors>
      </AgentRule>
    </Execution>
  </TestSettings>
  <Times creation=""2013-11-01T13:43:52.8654497+02:00"" queuing=""2013-11-01T13:43:55.0394497+02:00"" start=""2013-11-01T13:43:55.5834497+02:00"" finish=""2013-11-01T13:47:05.6964497+02:00"" />
  <ResultSummary outcome=""Failed"">
    <Counters total=""4241"" executed=""4241"" passed=""4236"" error=""0"" failed=""3"" timeout=""0"" aborted=""0"" inconclusive=""2"" passedButRunAborted=""0"" notRunnable=""0"" notExecuted=""0"" disconnected=""0"" warning=""0"" completed=""0"" inProgress=""0"" pending=""0"" />
  </ResultSummary>
  <TestDefinitions>
    <UnitTest name=""ActivityCollectionDesignerViewModel_ExecuteShowErrorsCommand_ShowErrorsIsTrue_ShowErrorsIsSetToFalse"" storage=""d:\\builds\\releasegate\\binaries\\dev2.activities.designers.tests.dll"" id=""6142bab1-509e-a426-59b7-e5d8bc6d62cf"">
      <Owners>
        <Owner name=""Tshepo Ntlhokoa"" />
      </Owners>
      <TestCategory>
        <TestCategoryItem TestCategory=""ActivityCollectionDesignerViewModel_ExecuteShowErrorsCommand"" />
      </TestCategory>
      <Execution id=""46ecc213-c05f-4b20-9407-0b99ea2cfd18"" />
      <TestMethod codeBase=""D:/Builds/ReleaseGate/Binaries/Dev2.Activities.Designers.Tests.DLL"" adapterTypeName=""Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestAdapter, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.Adapter, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"" className=""Dev2.Activities.Designers.Tests.Designers2.Core.ActivityCollectionDesignerViewModelTests, Dev2.Activities.Designers.Tests, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null"" name=""ActivityCollectionDesignerViewModel_ExecuteShowErrorsCommand_ShowErrorsIsTrue_ShowErrorsIsSetToFalse"" />
    </UnitTest>
    <UnitTest name=""DataListInputWhereValidArgsDataListHasInputsScalarsAndRecSetExpectCorrectString"" storage=""d:\\builds\\releasegate\\binaries\\dev2.runtime.tests.dll"" id=""9fd0ecee-f50c-e066-0468-ce2b55bda4ab"">
      <Execution id=""98e1e23c-f12a-4415-944b-e6deb57ce44f"" />
      <TestMethod codeBase=""D:/Builds/ReleaseGate/Binaries/Dev2.Runtime.Tests.DLL"" adapterTypeName=""Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestAdapter, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.Adapter, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"" className=""Dev2.Tests.Runtime.ServiceModel.ResourcesTests, Dev2.Runtime.Tests, Version=0.2.8.0, Culture=neutral, PublicKeyToken=null"" name=""DataListInputWhereValidArgsDataListHasInputsScalarsAndRecSetExpectCorrectString"" />
    </UnitTest>
    <UnitTest name=""BlankSpaceTypeSplitMultiple_Expected_Split_Mutiple_At_BlankSpace"" storage=""d:\\builds\\releasegate\\binaries\\dev2.activities.tests.dll"" id=""7e7e630d-fafe-de84-423b-98111f0c4f10"">
      <Execution id=""dfc91477-fc60-4272-9528-87c83c36ea9e"" />
      <TestMethod codeBase=""D:/Builds/ReleaseGate/Binaries/Dev2.Activities.Tests.DLL"" adapterTypeName=""Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestAdapter, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.Adapter, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"" className=""Dev2.Tests.Activities.ActivityTests.DataSplitActivityTest, Dev2.Activities.Tests, Version=0.2.8.0, Culture=neutral, PublicKeyToken=null"" name=""BlankSpaceTypeSplitMultiple_Expected_Split_Mutiple_At_BlankSpace"" />
    </UnitTest>
    <UnitTest name=""EmptyStringToBoolConverter_UnitTest_FalseWhenEmptyStringWhiteSpace_ExpectsTrue"" storage=""d:\\builds\\releasegate\\binaries\\dev2.studio.core.tests.dll"" id=""edea71e2-ab69-da37-c337-d40ffd7134a1"">
      <Description>When a string is white space, expect false when istrueisempty equals false</Description>
      <Owners>
        <Owner name=""Jurie Smit"" />
      </Owners>
      <TestCategory>
        <TestCategoryItem TestCategory=""EmptyStringToBoolConverter"" />
      </TestCategory>
      <Execution id=""7717e8d0-6284-4e03-b460-12414be89064"" />
      <TestMethod codeBase=""D:/Builds/ReleaseGate/Binaries/Dev2.Studio.Core.Tests.DLL"" adapterTypeName=""Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestAdapter, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.Adapter, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"" className=""Dev2.Core.Tests.ConverterTests.EmptyStringToBoolConverterTests, Dev2.Studio.Core.Tests, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null"" name=""EmptyStringToBoolConverter_UnitTest_FalseWhenEmptyStringWhiteSpace_ExpectsTrue"" />
    </UnitTest>
    <UnitTest name=""StartsWith_MatchCase_False_RequireAllFieldsToMatch_AllFieldsMatch_Expected_3"" storage=""d:\\builds\\releasegate\\binaries\\dev2.core.tests.dll"" id=""ab77f188-f223-34cf-e658-5de592dab87e"">
      <Execution id=""a4180f20-d3bc-414f-8821-eb11e4e705e2"" />
      <TestMethod codeBase=""D:/Builds/ReleaseGate/Binaries/Dev2.Core.Tests.DLL"" adapterTypeName=""Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestAdapter, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.Adapter, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"" className=""Dev2.Tests.RecordsetSearch.RsOpTests, Dev2.Core.Tests, Version=0.2.8.0, Culture=neutral, PublicKeyToken=null"" name=""StartsWith_MatchCase_False_RequireAllFieldsToMatch_AllFieldsMatch_Expected_3"" />
    </UnitTest>
    <UnitTest name=""CanInvokeDecisionStack_MultipleDecision_With_OR_Expect_True"" storage=""d:\\builds\\releasegate\\binaries\\dev2.data.tests.dll"" id=""ebaa4ad7-7566-977f-f72c-5d9012d134c0"">
      <Execution id=""c82d7c97-24fe-4e4e-abb6-d48adbd36060"" />
      <TestMethod codeBase=""D:/Builds/ReleaseGate/Binaries/Dev2.Data.Tests.DLL"" adapterTypeName=""Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestAdapter, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.Adapter, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"" className=""Dev2.Data.Tests.SystemTemplates.DecisionTest, Dev2.Data.Tests, Version=0.2.8.0, Culture=neutral, PublicKeyToken=null"" name=""CanInvokeDecisionStack_MultipleDecision_With_OR_Expect_True"" />
    </UnitTest>
    <UnitTest name=""TcpConnection_UnitTest_ConnectFails_DoesInvokeDisconnect"" storage=""d:\\builds\\releasegate\\binaries\\dev2.studio.core.tests.dll"" id=""40e1ba7a-d657-55ba-f6db-bfac68b345da"">
      <Description>TcpConnection Connect must disconnect when connection to server fails.</Description>
      <Owners>
        <Owner name=""Trevor Williams-Ros"" />
      </Owners>
      <TestCategory>
        <TestCategoryItem TestCategory=""TcpConnection_Connect"" />
      </TestCategory>
      <Execution id=""3e6f82bf-5fb8-4293-8d09-0542747e3c75"" />
      <TestMethod codeBase=""D:/Builds/ReleaseGate/Binaries/Dev2.Studio.Core.Tests.DLL"" adapterTypeName=""Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestAdapter, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.Adapter, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"" className=""Dev2.Core.Tests.Network.TcpConnectionTests, Dev2.Studio.Core.Tests, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null"" name=""TcpConnection_UnitTest_ConnectFails_DoesInvokeDisconnect"" />
    </UnitTest>
    <UnitTest name=""GetIntellisenseResultsWithSumAndAfterCommaAndBeforeBraceExpectedAllVarsInResults"" storage=""d:\\builds\\releasegate\\binaries\\dev2.studio.core.tests.dll"" id=""cf841a6b-14c1-1575-edba-45b97f0027ad"">
      <Execution id=""368c921f-24c9-4120-9e59-1313ed0c8675"" />
      <TestMethod codeBase=""D:/Builds/ReleaseGate/Binaries/Dev2.Studio.Core.Tests.DLL"" adapterTypeName=""Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestAdapter, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.Adapter, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"" className=""Dev2.Core.Tests.IntellisenseProviderTest, Dev2.Studio.Core.Tests, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null"" name=""GetIntellisenseResultsWithSumAndAfterCommaAndBeforeBraceExpectedAllVarsInResults"" />
    </UnitTest>
    <UnitTest name=""GetDebugInputOutputWithScalarCsvsExpectedPass"" storage=""d:\\builds\\releasegate\\binaries\\dev2.activities.tests.dll"" id=""18db7495-8579-e9df-3f65-223579568fd5"">
      <Execution id=""e819c819-7d63-4e7c-a2f1-97464c7134b8"" />
      <TestMethod codeBase=""D:/Builds/ReleaseGate/Binaries/Dev2.Activities.Tests.DLL"" adapterTypeName=""Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestAdapter, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.Adapter, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"" className=""Dev2.Tests.Activities.ActivityTests.ForEachActivityTest, Dev2.Activities.Tests, Version=0.2.8.0, Culture=neutral, PublicKeyToken=null"" name=""GetDebugInputOutputWithScalarCsvsExpectedPass"" />
    </UnitTest>
    <UnitTest name=""ToStringOnEnumerableSegment_WhereEnumerablesArentConsidered_Expected_ScalarFormat"" storage=""d:\\builds\\releasegate\\binaries\\dev2.core.tests.dll"" id=""3a95af49-978b-ffba-8a29-cb7ad2cc403f"">
      <Execution id=""523e1acc-3e26-4100-8e0d-98c8c0705347"" />
      <TestMethod codeBase=""D:/Builds/ReleaseGate/Binaries/Dev2.Core.Tests.DLL"" adapterTypeName=""Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestAdapter, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.Adapter, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"" className=""Unlimited.UnitTest.Framework.ConverterTests.GraphTests.StringTests.JsonTest.JsonPathSegmentTests, Dev2.Core.Tests, Version=0.2.8.0, Culture=neutral, PublicKeyToken=null"" name=""ToStringOnEnumerableSegment_WhereEnumerablesArentConsidered_Expected_ScalarFormat"" />
    </UnitTest>
    <UnitTest name=""SortActivity_MultipleRecordSetContainingSameSortValue_DateTime_SortedWithTheRecordSetAppearingMultipleTimes"" storage=""d:\\builds\\releasegate\\binaries\\dev2.activities.tests.dll"" id=""ae44269d-d5bb-bd9f-52dd-eaec4fbb93d9"">
      <Execution id=""310cc625-6b0f-47d6-90b5-376b97da50e5"" />
      <TestMethod codeBase=""D:/Builds/ReleaseGate/Binaries/Dev2.Activities.Tests.DLL"" adapterTypeName=""Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestAdapter, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.Adapter, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"" className=""Dev2.Tests.Activities.ActivityTests.SortRecordsTest, Dev2.Activities.Tests, Version=0.2.8.0, Culture=neutral, PublicKeyToken=null"" name=""SortActivity_MultipleRecordSetContainingSameSortValue_DateTime_SortedWithTheRecordSetAppearingMultipleTimes"" />
    </UnitTest>
</TestDefinitions>
</TestRun>
Travis Frisinger
Phone:    +27 (0) 31 716 9797
E-mail:    [email protected]
Website: http://dev2.co.za";
            #endregion

            //------------Execute Test---------------------------
            var replaceSlashes = JSONUtils.ReplaceSlashes(TestData);
            //------------Assert Results-------------------------
            Assert.AreEqual(ExpectedResult, replaceSlashes);
        }
示例#26
0
        public virtual void WriteEDATA(JSONNode inNode)
        {
            int currentVersion = Genie.TELEMETRY_VERSION;

            JSONNode eks = inNode["eks"] = new JSONClass();
            JSONNode ext = inNode["ext"] = new JSONClass();

            var fields = GetType().GetFields(BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance);

            foreach (var f in fields)
            {
                JSONNode target = null;

                if (Attribute.IsDefined(f, typeof(EKSAttribute)))
                {
                    target = eks;
                }
                else if (Attribute.IsDefined(f, typeof(EXTAttribute)))
                {
                    target = ext;
                }
                else
                {
                    continue;
                }

                object value = f.GetValue(this);
                string name  = f.Name;

                bool bWriteOut = value != null;
                if (bWriteOut)
                {
                    RemovedInVersionAttribute[] removedVersions = TypeHelper.GetCustomAttributes <RemovedInVersionAttribute>(f);
                    foreach (var removedAttribute in removedVersions)
                    {
                        if (currentVersion >= removedAttribute.VersionRemoved && currentVersion < removedAttribute.VersionReinstated)
                        {
                            bWriteOut = false;
                            break;
                        }
                    }
                }
                if (bWriteOut)
                {
                    RenamedInVersionAttribute[] renamedVersions = TypeHelper.GetCustomAttributes <RenamedInVersionAttribute>(f);
                    int minProcessed = 0;
                    foreach (var renameAttribute in renamedVersions)
                    {
                        if (minProcessed < renameAttribute.Version)
                        {
                            minProcessed = renameAttribute.Version;
                            if (currentVersion >= renameAttribute.Version)
                            {
                                name = renameAttribute.Name;
                            }
                        }
                    }

                    target.Add(name, JSONUtils.Parse(value));
                }
            }
        }
示例#27
0
 public void MakeBracketedListFromValues_NullKey_ReturnsNull()
 {
     Assert.IsNull(JSONUtils.MakeBracketedListFromValues(null, new[] { "blah" }));
 }
示例#28
0
 void ViewJsonObjects()
 {
     JsonObjectsView?.ShowJsonString(JSONUtils.Format(ObjectResult));
 }
示例#29
0
    //private List<Party> parties = new List<Party>();

    void Start()
    {
        JSONUtils.initJsonObjectConversion();
    }
示例#30
0
 public string toJSON()
 {
     // display the unidentified text
     return(JSONUtils.toJSON(this.text));
 }