Esempio n. 1
0
        public void WhenNull_WithNull_WithMessage_OfObjectWithIncorrectOverridenEquals_DoesNotThrow()
        {
            const string parameterName = "TEST";
            const string message       = "TESTMESSAGE";

            var lyingObject = new ObjWithIncorrectOverridenEquals(); // .Equals(null) returns true

            Throw.ArgumentNull.WhenNull(lyingObject, parameterName, message);
        }
Esempio n. 2
0
        public void WhenNull_WithNull_OfObjectWithIncorrectOverridenEquals_DoesNotThrow()
        {
            var lyingObject = new ObjWithIncorrectOverridenEquals(); // .Equals(null) returns true

            Throw.ArgumentNull.WhenNull(lyingObject, "TEST");
        }