public void ParsesBothValues() { TestObject.HandleParse(TestRange(TestAbsoluteMin, TestAbsoluteMax)); MockFieldDefinition.Verify(field => field.Parse(TestAbsoluteMin.ToString()), Times.Once); MockFieldDefinition.Verify(field => field.Parse(TestAbsoluteMax.ToString()), Times.Once); }
public void Init() { MockFieldDefinition .Setup(field => field.Parse(TestAbsoluteMin.ToString())) .Returns(TestAbsoluteMin); MockFieldDefinition .Setup(field => field.Parse(TestAbsoluteMax.ToString())) .Returns(TestAbsoluteMax); TestObject = new RangeValueLink <ICronFieldDefinition>(MockFieldDefinition.Object, MockRangeLink.Object); }