public void Test_2() { // Arrange var values = new decimal?[] { 5, 1, 1, 1, -5 }; // Act IndicatorBuilder.BuildHypes(values); // Assert Assert.AreEqual(true, values[0] >= 0); Assert.AreEqual(true, values[1] >= 0); Assert.AreEqual(true, values[2] >= 0); Assert.AreEqual(true, values[3] >= 0); Assert.AreEqual(true, values[4] == 0); }
public void Test_BuildHypes_3() { // Arrange var values = new decimal[] { 6, 1, 1, 1, 1 }; // Act IndicatorBuilder.BuildHypes(values); // Assert Assert.AreEqual(true, values[0] >= 0); Assert.AreEqual(true, values[1] == 0); Assert.AreEqual(true, values[2] == 0); Assert.AreEqual(true, values[3] == 0); Assert.AreEqual(true, values[4] == 0); }
public void Hype_6() { // Arrange var values = new decimal?[] { 50, 0, 0, 0, -50 }; // Act IndicatorBuilder.BuildHypes(values); // Assert Assert.AreEqual(true, values[0] >= 0); Assert.AreEqual(true, values[1] == 0); Assert.AreEqual(true, values[2] == 0); Assert.AreEqual(true, values[3] == 0); Assert.AreEqual(true, values[4] == 0); }