[WD23] Compare Two Interfaces December 02, 2019 03:33PM |
Registered: 4 years ago Posts: 9 |
PROCÉDURE Intantiate() _code is int = 10 _type is string = "success" _information is string = "Everything worked !" _content is array of IResponseResult _content.Add(new Entity()) _content.Add(new Entity()) _content.Add(new Entity()) _response is IResponse <- new SuccessResponse(_code, _type, _information, _content) TestCheckEqual(_response.Code, _code) TestCheckEqual(_response.Type, _type) TestCheckEqual(_response.Information, _information) TestCheckEqual(_response.Content..Occurrence, _content..Occurrence) // I'm only comparing the number of element, because WLanguage can't compare two interfaces.