public void AreNotEqualFail() { const string parameterName = "parameterName"; try { InternalContract.RequireAreNotEqual(10, 2 * 5, parameterName); UT.Assert.Fail("An exception should have been thrown"); } catch (FulcrumContractException fulcrumException) { UT.Assert.IsTrue(fulcrumException.TechnicalMessage.Contains(parameterName)); } catch (Exception e) { UT.Assert.Fail($"Expected a specific FulcrumException but got {e.GetType().FullName}."); } }
public void AreNotEqualOk() { const string parameterName = "parameterName"; InternalContract.RequireAreNotEqual("Knoll", "Tott", parameterName); }