StringExtensionsTests ConvertDictionaryToString Method Delta Engine Documentation

Namespace: DeltaEngine.Tests.Extensions
Assembly: DeltaEngine.Tests (in DeltaEngine.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public void ConvertDictionaryToString()
Examples

[Test]
public void ConvertDictionaryToString()
{
    var dictionary = new Dictionary<string, string>();
    dictionary.Add("FirstKey","FirstValue");
    dictionary.Add("SecondKey","SecondValue");
    var arrayOfStrings = StringExtensions.ToInvariantString(dictionary);
    Assert.AreEqual(41, arrayOfStrings.Length);
    Assert.AreEqual(8, arrayOfStrings.IndexOf(';'));
    Assert.AreEqual(29, arrayOfStrings.LastIndexOf(';'));
}
See Also