示例#1
0
        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}.");
            }
        }
示例#2
0
        public void AreNotEqualOk()
        {
            const string parameterName = "parameterName";

            InternalContract.RequireAreNotEqual("Knoll", "Tott", parameterName);
        }