Beispiel #1
0
        public void StringArgumentMarshalerExceptionCreateReferenceWithErrorCodeMISSING_PassingTest()
        {
            StringArgumentMarshalerException argumentMarshalerException = new StringArgumentMarshalerException(ErrorCode.MISSING);

            Assert.Equal(ErrorCode.MISSING, argumentMarshalerException.ErrorCode);
            Assert.Equal("Parameter is missing!", argumentMarshalerException.ErrorMessage());
        }
Beispiel #2
0
        public void StringArgumentMarshalerExceptionCreateReferenceWithErrorCodeINVALIDPARAMETER_PassingTest()
        {
            StringArgumentMarshalerException argumentMarshalerException = new StringArgumentMarshalerException(ErrorCode.INVALID_PARAMETER);

            Assert.Equal(ErrorCode.INVALID_PARAMETER, argumentMarshalerException.ErrorCode);
            Assert.Equal($"'-{null}' is not valid!", argumentMarshalerException.ErrorMessage());
        }
Beispiel #3
0
        public void StringArgumentMarshalerExceptionCreateReferenceWithErrorCodeOK_PassingTest()
        {
            StringArgumentMarshalerException argumentMarshalerException = new StringArgumentMarshalerException(ErrorCode.OK);

            Assert.Equal(ErrorCode.OK, argumentMarshalerException.ErrorCode);
            Assert.Equal("TILT: Should not be reached!", argumentMarshalerException.ErrorMessage());
        }