コード例 #1
0
        public void AddMinimumObjectIdSearchCondition_CountAtOne()
        {
            // Arrange.
            var searchConditions = new SearchConditions();

            // Act.
            searchConditions.AddMinimumObjectIdSearchCondition(1);

            // Assert.
            Assert.AreEqual(1, searchConditions.Count);
        }
コード例 #2
0
        public void AddMinimumObjectIdSearchCondition_ConditionCorrect()
        {
            // Arrange.
            var searchConditions = new SearchConditions();

            // Act.
            searchConditions.AddMinimumObjectIdSearchCondition(1000);

            // Assert.
            var condition = searchConditions[1];

            Assert.IsNotNull(condition);
            Assert.AreEqual(MFConditionType.MFConditionTypeGreaterThanOrEqual, condition.ConditionType);
            Assert.AreEqual(MFStatusType.MFStatusTypeObjectID, condition.Expression.DataStatusValueType);
            Assert.AreEqual(MFDataType.MFDatatypeInteger, condition.TypedValue.DataType);
            Assert.AreEqual("1000", condition.TypedValue.GetValueAsUnlocalizedText());
        }