public void IsGreaterThan_IsGreaterThanUnitTest_Invoke_TrueIsReturned() { //init var comparer = new IsGreaterThan(); //exe var actual = comparer.Invoke(new[] { "100", "2" }); //assert Assert.IsTrue(actual, "IsGreaterThan returned the wrong result when comparing integers"); }
// ReSharper disable InconsistentNaming public void IsGreaterThan_IsGreaterThanUnitTest_Invoke_FalseIsReturned() // ReSharper restore InconsistentNaming { //init var comparer = new IsGreaterThan(); //exe var actual = comparer.Invoke(new[] { "2", "100" }); //assert Assert.IsFalse(actual, "IsGreaterThan returned the wrong result when comparing integers"); }
public void IsGreaterThan_IsGreaterThanUnitTest_Invoke_FalseIsReturned() { //init var comparer = new IsGreaterThan(); //exe var actual = comparer.Invoke(new[] { "2", "100" }); //assert Assert.IsFalse(actual, "IsGreaterThan returned the wrong result when comparing integers"); //exe actual = comparer.Invoke(new[] { "SomeVal", "AnotherVal" }); //assert Assert.IsTrue(actual, "IsGreaterThan returned the wrong result when comparing strings"); //exe actual = comparer.Invoke(new[] { string.Empty }); //assert Assert.IsFalse(actual, "IsGreaterThan returned the wrong result when comparing empty string"); }