public void AddMinimumObjectIdSearchCondition_CountAtOne() { // Arrange. var searchConditions = new SearchConditions(); // Act. searchConditions.AddMinimumObjectIdSearchCondition(1); // Assert. Assert.AreEqual(1, searchConditions.Count); }
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()); }