ArrayExtensionsTests GetWithDefaultReturnsDefaultIfNotInDictionary 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 GetWithDefaultReturnsDefaultIfNotInDictionary()
Examples

[Test]
public void GetWithDefaultReturnsDefaultIfNotInDictionary()
{
    int result = ArrayExtensions.GetWithDefault<string, int>(dictionary, "Missing");
    Assert.AreEqual(0, result);
}
See Also