MathExtensionsTests Max 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 Max()
Examples

[Test]
public void Max()
{
    Assert.AreEqual(3.5f, MathExtensions.Max(3.5f, 2.5f));
    Assert.AreEqual(-1.5f, MathExtensions.Max(-3.5f, -1.5f));
    Assert.AreEqual(-2.5f, MathExtensions.Max(-2.5f, -2.5f));
    Assert.AreEqual(-2, MathExtensions.Max(-2, -3));
}
See Also