StringExtensionsTests SplitIntoFloatsWithSeparator 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 SplitIntoFloatsWithSeparator()
Examples

[Test]
public void SplitIntoFloatsWithSeparator()
{
    const string StringFloats = "1.0, 2.0, 0511.580254";
    var expectedFloats = new[] { 1.0f, 2.0f, 511.580261f };
    CollectionAssert.AreEqual(expectedFloats, StringFloats.SplitIntoFloats(','));
    CollectionAssert.AreEqual(expectedFloats, StringFloats.SplitIntoFloats(", "));
}
See Also