/***************************************************
 ** @author   STF 433
 ** @version  0.0.1
 ** @purpose  1:22.2.1, Ensure that the IUT correctly handles message sending operations
 ** @verdict  pass reject
 ***************************************************/

module NegSem_220201_SendOperation_003 {


    type port loopbackPort message {
	  inout integer
	}


type component GeneralComp {
	  port loopbackPort messagePort
}

testcase TC_NegSem_220201_SendOperation_003() runs on GeneralComp {


 messagePort.send(float:2.0);  //sent type does not match port specification

    alt {
     [] messagePort.receive(2) {
        setverdict(pass);
     }
     [] messagePort.receive {
        setverdict(fail);
     }
    }
}

control{
    execute(TC_NegSem_220201_SendOperation_003());
}

}
