コード例 #1
0
        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);
        }
コード例 #2
0
        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);
        }