예제 #1
0
        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);
        }
예제 #2
0
        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);
        }