public void MathOperationsContainer_returns_default_keyword_for_unknown_value_and_unary() { var mathOperationsContainer = new MathOperationsContainer(); var operationCharacteristics = new OperationCharacteristics("&", OperationType.Unary); var keyword = mathOperationsContainer.GetKeywordOrDefault(operationCharacteristics); Assert.Null(keyword); }
public void MathOperationsContainer_returns_keyword_of_unary_minus_operation_by_characteristics() { var mathOperationsContainer = new MathOperationsContainer(); var operationCharacteristics = new OperationCharacteristics("-", OperationType.Unary); var keyword = mathOperationsContainer.GetKeywordOrDefault(operationCharacteristics); Assert.Equal("~", keyword); }