diff --git a/Tests/Indicators/IndicatorTests.cs b/Tests/Indicators/IndicatorTests.cs index dad6ebb69939..badcdaa9e8ed 100644 --- a/Tests/Indicators/IndicatorTests.cs +++ b/Tests/Indicators/IndicatorTests.cs @@ -65,13 +65,13 @@ public void UpdatesProperly() } [Test] - public void ThrowsOnDifferentDataType() + public void ShouldNotThrowOnDifferentDataType() { var target = new TestIndicator(); - Assert.Throws(() => + Assert.DoesNotThrow(() => { target.Update(new Tick()); - }, "expected to be of type"); + }); } [Test] @@ -174,7 +174,7 @@ public void IndicatorMustBeEqualToItself() { try { - instantiatedIndicator = Activator.CreateInstance(indicator, new object[] {10}); + instantiatedIndicator = Activator.CreateInstance(indicator, new object[] { 10 }); counter++; } catch (Exception) @@ -364,7 +364,7 @@ private static MethodInfo GetOperatorMethodInfo(string @operator, int argInde { var methodName = "op_" + @operator; var method = - typeof (IndicatorBase).GetMethods(BindingFlags.Static | BindingFlags.Public) + typeof(IndicatorBase).GetMethods(BindingFlags.Static | BindingFlags.Public) .SingleOrDefault(x => x.Name == methodName && x.GetParameters()[argIndex].ParameterType == typeof(T)); if (method == null)